Home › Forums › Legacy Support › Support queries › Translation issues › translation problem with codestyling localization plugin
- This topic has 23 replies, 3 voices, and was last updated 8 years, 2 months ago by ewanb.
-
AuthorPosts
-
August 10, 2016 at 7:11 pm #63661ewanbParticipantHi I followed all steps of page https://wplms.io/support/knowledge-base/translate-using-codestyling-localization-plugin/ But when I click on "edit" in localization page, I do not see any string and I get the following error message : "Error: The actual loaded translation content does not match the textdomain: vibe Expect, that any text you translate will not occure as long as the textdomain is mismatching! This is a coding issue at the source files you try to translate, please contact the original Author and explain this mismatch."August 11, 2016 at 11:00 am #63775H.K. LatiyanParticipantPlease try to rescan the file before clicking on edit button, the rescan button is just next to edit button. Also let us know which file you are translating and which text.August 11, 2016 at 11:21 am #63780ewanbParticipantYes, I followed steps of page https://wplms.io/support/knowledge-base/translate-using-codestyling-localization-plugin/ so I clicked on rescan for all files. This problem appears for every file I tried : bbpress translation file, vibe course module file,... and also for theme translation file.August 12, 2016 at 2:24 pm #64039H.K. LatiyanParticipantWe have never seen this error message before and no other users reported this to us. I can suggest you 2 things: 1) Please try using loco translate plugin: https://wplms.io/support/knowledge-base/translate-using-loco-translate-plugin/ This plugin is also available in the wordpress directory. 2) If the issue persists then share the site url and the admin credentials to check the issue on your site.August 16, 2016 at 8:42 am #64565ewanbParticipantI tried using Loco Translate plugin This is fine for some .po files (like Buddypress) But for some other plugins, for example Vibe Course Module, it doesn't "find" the fr_FR existing translation (see attached screenshot : fr_FR file is set to 0%, and there is no string when editing this language). And of course I will not start back from an empty .po file. How can I "import" the fr_FR translation files that exist ? It seems they are located at wp-content/plugins/vibe-course-module/languages/ ThanksAugust 17, 2016 at 3:21 pm #65158H.K. LatiyanParticipantFirst go to wp-admin->settings->general->site language, and select your language there. Once the site language is changed then the wordpress will automatically consider the language file for your language from the wp-content/plugins/vibe-course-module/languages/. Also make sure the languages folder is present in the wp-content folder because all the translations are saved in this global languages folder done by the translation plugin.August 17, 2016 at 3:37 pm #65177ewanbParticipantGeneral site language is already set to french. As I said there is no problem for some other plugins (example : Buddypress) There is a "language" folder in wp-content, do I need to manually move vibe-fr_FR.po to this global folder ? (now it's in wp-content/plugins/vibe-course-module/languages/) thanksAugust 17, 2016 at 3:43 pm #65180H.K. LatiyanParticipantDo not move it but you can copy and paste it in the wp-content/languages/plugins folder.August 17, 2016 at 3:44 pm #65185H.K. LatiyanParticipantMake sure the wp-content/languages folder contains two folders i.e. "plugins" and "themes" If not then create them. The theme translation is save in the wp-content/languages/themes folder and plugins translations are saved in the wp-content/languages/plugins folder for the wplms theme and plugins respectively.August 18, 2016 at 10:21 am #65367ewanbParticipantAfter copying the files in the wp-content/languages/plugins folder, I still have the problem : fr_FR file is set to 0%, and there is no string when editing this language.August 19, 2016 at 11:42 am #65614H.K. LatiyanParticipantI have already mentioned a link above for translating using loco translate plugin. Try translating the strings using the plugin and it will remain safe.August 21, 2016 at 2:15 pm #66006ewanbParticipantYes I do use loco translate plugin. My problem is that existing file is not recognized. So if I translate strings with the plugin, I have to start back from an empty file, meaning a huge loss of timeAugust 22, 2016 at 1:02 pm #66163H.K. LatiyanParticipantPlease make sure your files are present in the wp-content/languages folder. If already present then you have to sync the files and the translations will not be lost. So after updating just try to sync the files, refer: http://prnt.sc/byimm1August 22, 2016 at 8:01 pm #66222ewanbParticipantIt appears that all my .po files have been replaced by empty ones on the ftp after loco translate install. Thankfully I had backup files. For the record, the folder where I had to replace the files is not wp-content/languages/plugins but the langage folder of each plugin (e.g. wp-content/plugins/vibe-course-module/languages). That might help someone else aswell. Thanks for helping,August 23, 2016 at 12:57 pm #66382H.K. LatiyanParticipantThese files will be lost after the update if you put it in the plugins/languages folder. In the theme the first check is for the files in the global languages folder only. So the correct way is to keep the files in the global languages folder to keep them safe from the updates.
-
AuthorPosts
- The topic ‘translation problem with codestyling localization plugin’ is closed to new replies.