Title: Add Locale Class
Author: AlanP57
Published: <strong>14 آگوست 2017</strong>
Last modified: 7 نوامبر 2023

---

جستجوی افزونه‌ها

این افزونه **با ۳ نگارش عمدهٔ اخیر وردپرس آزمایش نشده است**. ممکن است دیگر نگهداری
یا پشتیبانی نشود و هنگام استفاده با نگارش‌های تازه‌تر وردپرس مشکل سازگاری داشته 
باشد.

![](https://s.w.org/plugins/geopattern-icon/add-locale-class.svg)

# Add Locale Class

 توسط [AlanP57](https://profiles.wordpress.org/alanp57/)

[دانلود](https://downloads.wordpress.org/plugin/add-locale-class.1.0.5.zip)

 * [جزئیات](https://fa.wordpress.org/plugins/add-locale-class/#description)
 * [نقد و بررسی‌ها](https://fa.wordpress.org/plugins/add-locale-class/#reviews)
 *  [نصب](https://fa.wordpress.org/plugins/add-locale-class/#installation)
 * [توسعه](https://fa.wordpress.org/plugins/add-locale-class/#developers)

 [پشتیبانی](https://wordpress.org/support/plugin/add-locale-class/)

## توضیحات

On multi language sites there may be occasions when you want to render CSS according
to the current language in use. The Add Local Class plugin solves this problem by
adding the current language code as a class in the body tag on both front end and
admin pages.

For example, if you set the language of the site to French, then the language code
used is fr_FR. Add Local Class will retrieve the language code format it as ‘locale-
fr-fr’ and add it to the body tags on the front end of the site. It will also retrieve
the language code of the backend user and set it as a body tag class on the back
end of the site. Should the site’s language be changed to U.S. English, then the
class would be changed to ‘locale-en-us’.

In your CSS file you can have one rule for French and another for English:

. locale-fr-fr .button {
 background-color: blue; }

. locale-en-us .button {
 background-color: red; }

With the Add Local Class plugin it possible to make use of language specific CSS
on your site.

This plugin does not have a settings page. You simple install and activate it.

The Add Local Class plugin is brought to you by Max Foundry. We make a [WordPress Gallery plugin](https://maxgalleria.com/),
a plugin for [WordPress media library folders](https://maxgalleria.com/downloads/media-library-plus-pro/)
and [MaxButtons](https://maxbuttons.com/).

## نصب

Upload and unzip the plugin in your Plugins folder. Go to your Plugins page and 
activate Add Local Class.

## نقد و بررسی‌ها

نقد و بررسی‌ای برای این افزونه یافت نشد.

## توسعه دهندگان و همکاران

“Add Locale Class” نرم افزار متن باز است. افراد زیر در این افزونه مشارکت کرده‌اند.

مشارکت کنندگان

 *   [ AlanP57 ](https://profiles.wordpress.org/alanp57/)
 *   [ maxfoundry ](https://profiles.wordpress.org/maxfoundry/)

[ترجمه “Add Locale Class” به زبان شما.](https://translate.wordpress.org/projects/wp-plugins/add-locale-class)

### علاقه‌ مند به توسعه هستید؟

[کد را مرور کنید](https://plugins.trac.wordpress.org/browser/add-locale-class/)،
[مخزن SVN](https://plugins.svn.wordpress.org/add-locale-class/) را بررسی کنید، یا
از طریق [RSS](https://plugins.trac.wordpress.org/log/add-locale-class/?limit=100&mode=stop_on_copy&format=rss)
در [گزارش توسعه](https://plugins.trac.wordpress.org/log/add-locale-class/) مشترک
شوید.

## گزارش تغییرات

#### 1.0.5

 * Tested with WordPress 6.4

#### 1.0.4

 * Tested with WordPress 6.1

#### 1.0.3

 * Tested with WordPress 5.9.3

#### 1.0.2

 * Tested with WordPress 5.5

#### 1.0.1

 * Added test for classes as an array

#### 1.0.0

 * Initial Release

## اطلاعات

 *  نگارش **1.0.5**
 *  آخرین به‌روزرسانی **3 سال پیش**
 *  نصب‌های فعال **کمتر از 10**
 *  نگارش وردپرس ** 2.8 یا بالاتر **
 *  آزمایش‌شده تا **6.4.8**
 *  زبان
 * [English (US)](https://wordpress.org/plugins/add-locale-class/)
 *  [نمایش پیشرفته](https://fa.wordpress.org/plugins/add-locale-class/advanced/)

## امتیازها

هنوز هیچ نقدی ارسال نشده است.

[Your review](https://wordpress.org/support/plugin/add-locale-class/reviews/#new-post)

[مشاهده همه بررسی‌ها](https://wordpress.org/support/plugin/add-locale-class/reviews/)

## مشارکت کنندگان

 *   [ AlanP57 ](https://profiles.wordpress.org/alanp57/)
 *   [ maxfoundry ](https://profiles.wordpress.org/maxfoundry/)

## پشتیبانی

چیزی برای گفتن دارید؟ نیاز به کمک دارید؟

 [مشاهده انجمن پشتیبانی](https://wordpress.org/support/plugin/add-locale-class/)