-
AuthorPosts
-
November 27, 2014 at 4:07 pm #359036
hello
im using the theme on hebrew version of wordpress.
im trying to translate all the theme po file (including theme options).
the translated text is not working in some places (theme options) and works in other places (the cpt in the wp menu “portfolio items”).
i thought maybe there is somthing wrong with the po file so i created a blank file (using code style localization) and translate only 2 strings – theme options and general layout, still it doesnt show.
i tried to look into it online but found nothing.
please help, thanksNovember 28, 2014 at 12:49 am #359291Shalom!
Please try using this plugin to translate missing strings – https://wordpress.org/plugins/codestyling-localization/
Please do not forget to rescan theme files before editing themCheers!
YigitNovember 28, 2014 at 11:26 am #359492hi
i wrote in my message that I AM using this plugin…i created a blank file (using code style localization)
agian, the problem is that translated text doesnt appear in various locations trough out the admin panel.
in the theme option page its 100% not translated, even though i translated all the strings in the he_IL.po fileNovember 28, 2014 at 11:34 am #359496after translating the files in code style localisation – did you press that little button on top “create mo-File” ?
November 28, 2014 at 1:20 pm #359542yes, its not my first time using codestyling localiztion
my guess is that is somting with the template becuse i used also po edit and it didnt work eitherNovember 28, 2014 at 1:40 pm #359551could be something with filepermissions. Can you change it via ftp (folder enfold/lang ) to something that defninitly works!
November 28, 2014 at 2:16 pm #359558hi
i changed filepermissions to wp-content and all the folders and files inside to 777
still problem remains.November 28, 2014 at 3:48 pm #359592have you some caching tools on work?
November 29, 2014 at 6:50 am #360029Hi!
Theme Options can’t be translated. You’d need to manually translate within the theme files. You can find the Theme Options strings on includes > admin > register-admin-options.php.
Best regards,
JosueNovember 29, 2014 at 12:05 pm #360056hi,
what about some other parts of the template that doesnt translate?
in the page builder, on the same place (ex. color tab) some text are translated and some not.
can you please elaborate on why it doesnt work? it uses the text domain same like any other… so what exactly is the problem?i have a client that wants me to translate all the template for him, if i translate the original register-admin-options.php it means that he cant update the theme, and to change all those settings into the child theme is crazy lots of work.
can i please get some real help here?
thank you.November 29, 2014 at 7:09 pm #360115Hey!
I think you needed to re-scan the translation file, missing translations are now available – http://screencast.com/t/UgNPY75Y9Dg (i translated Catalogue to Catalog to test).
Best regards,
JosueNovember 30, 2014 at 9:08 am #360255hi josue
thanks you i appriciate your help.most of the page builder is translatable, my only problem now is the theme option page, could you please give me a hint on why the text domain doesnt work there? maybe if i try to use a different text domain for the theme options?
December 1, 2014 at 6:58 am #360625Hey!
I’m sorry but we only rely on other users to translate the theme. This is why some of the language file (po/mo) are not fully complete. Actually, you can translate the theme options but you need to manually edit the .po file using PO Edit software or any text editor. For example, if you want to edit the Theme Options string, add this on the .po file located on the lang folder of the theme:
#: includes/admin/register-admin-options.php:7 #@ avia_framework msgid "Theme Options" msgstr "YOUR TRANSLATION HERE"
Go to the Codestyling Localization plugin panel. Rescan the language that you edit. Search for Theme Options, it should be translated. Please refer to this link for more info: https://www.gnu.org/software/gettext/manual/html_node/PO-Files.html
Cheers!
IsmaelDecember 1, 2014 at 11:59 am #360711hi ismael
i did what you said but still translation does not appear.
i tried changing trough the software po edit, and through the plugin codestyling localization.
please note that Josue said that theme options cannot be translated.im sorry to say guys but this is very unprofessional, if there is no possibility to translate theme options please just say so, if there is a way to fix it please give me some information (like whats the reason its not working) and i will try to fix it myself.
thank you.
December 2, 2014 at 5:14 am #361286Hey!
Did you click the generate mo-file button on the codestyling localization panel after editing the strings? Actually, I just tested the instructions that I gave you above and it works fine. Please review it then let us know if it still doesn’t work.
Best regards,
IsmaelDecember 2, 2014 at 9:12 am #361348November 28, 2014 at 11:34 am #359496 REPLY
Guenni007
Participant
after translating the files in code style localisation – did you press that little button on top “create mo-File” ?November 28, 2014 at 1:20 pm #359542 EDIT | REPLY
mbamar
Participant
yes, its not my first time using codestyling localiztion
my guess is that is somting with the template becuse i used also po edit and it didnt work either.Ismael, did u change the string “Theme Options” and it changed for you in the Enfold options page?
December 2, 2014 at 9:54 am #361357hi Kriesi
i was able to fix it myself, by adding “load_theme_textdomain(‘avia_framework’, get_template_directory() . ‘/lang’);” to register-admin-options.php file.
it is very disappointing neither you nor your support team could help me solve a problem that turned out to be so simple.
i wish you well and hope you will strive to improve your support team.<br> good day
December 2, 2014 at 10:56 am #361380But there is another question – why didn’t we have the same problem as you?
My translations work without your “fix” !
even in installations in subfoldersEX-LEPER
Thank you, sir, thank… Half a dinari for me bloody life story?BRIAN
There’s no pleasing some people.EX-LEPER
That’s just what Jesus said, sir.December 4, 2014 at 2:42 am #362642Hey!
mbamar: I know that the theme options can be translated because of this: https://kriesi.at/support/topic/turning-off-enfold-back-end-translation/#post-323558
Alright. Looks like I’m wrong. After I added the translation manually via text editor then search for the string on the codestyling localization plugin, I didn’t check if the string is really translated. It’s not. Not sure why. Thanks for sharing.
@Guenn007: Glad it is working for you. :)
Regards,
IsmaelJanuary 15, 2015 at 6:56 pm #380273 -
AuthorPosts
- The topic ‘problem with translation PO files – not showing in many places’ is closed to new replies.