Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add localization #8

Open
osgmax opened this issue Dec 8, 2016 · 1 comment
Open

How to add localization #8

osgmax opened this issue Dec 8, 2016 · 1 comment

Comments

@osgmax
Copy link

osgmax commented Dec 8, 2016

Hi there!
I have a problem with localozation. I`m trying to add Russian translation to some things like Names in Filters (ASC DESC) Order BY Date, Name , Comments etc.. I edit the file /languages/cherry-portfolio-blank.pot
and add something like that:

#: public/includes/classes/class-cherry-portfolio-data.php:873
msgid "Asc"
msgstr "По возрастанию"

#: public/includes/classes/class-cherry-portfolio-data.php:874
msgid "Order"
msgstr "Сортировка"

#: public/includes/classes/class-cherry-portfolio-data.php:883
msgid "Order by"
msgstr "Сортировать по"

etc.

But nothing changes in fact.
Can you suggest me what to do to with that?

I have to translate words into Russain in Portfolio Filter:

str

@MakhonkoDenis
Copy link
Member

MakhonkoDenis commented Dec 8, 2016

Hi, MaksDer.

If you want localization plagin, u need rename file, like this cherry-portfolio-ru_RU. Then repeat your actions.
To change the localization files, it is better to use the program poedit
But if you did not change the localization WordPress settings ( Settings -> General -> Site Language ) the translation doesn't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants