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

[BUG report] The language only updates when the theme folder is named "Modern" #530

Closed
Uzer1 opened this issue Nov 14, 2012 · 1 comment
Closed
Labels

Comments

@Uzer1
Copy link

Uzer1 commented Nov 14, 2012

Hello.

Ive made a translation into Russian. I translated the main files in oc-content/languages and also the theme.po-file, which I have put into both the main translations folder and into the theme/{mytheme}/languages. The language activates and works fine in the modern theme, but doesnt work in my customized theme, unless I delete the modern folder and change the name of my theme into "modern" together with the index.php file. Then my customized theme shows my translations. Otherwise it shows everything in English. There are probably some problems with paths in some files. As you see, my customized theme is not crippled and is able to show the translations as well. The paths must be wrong somewhere.

End of report

@conejoninja
Copy link
Member

Hi Uzer,

usually a text in your theme should be something like this

_e('String to be translated', 'modern');
echo __('String to be translated', 'modern');

this "modern" should be changes to whatever your folder of the theme is named.

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

No branches or pull requests

2 participants