[Plugin: WPML Multilingual CMS] Create extra string
-
Hello everyone,
I’m a typical DIY guy, not exactly a PHP geek, but the more the sport to customize something.
This time, I added the WPML plugin for WordPress (for French/English). Works pretty fine, the only problem is that the first link (Home) is just written in the header template, since it’s not in the menu. Since we started out with the French version, it says ‘Accueil’, in the English version it needs to be ‘Home’.
I followed the example of blog_title and blog_tagline (or: blogname and blogdescription if you want, there are several names for the variable through the codes).
I added the variable in the SQL database and named it ‘blogwelcome’ (value ‘Accueil’). Everywhere the blog name and description popped up, I added something simular for the menu item.
It works fine. WordPress gets the value from the SQL database. But now to get the translation to work… In the file inc/functions-string-translation.php (in the WPML plug-in folder), I found all the stuff for the Blog Title and Tagline and added my own stuff for Menu Home.
Despite this… The string doesn’t appear in the Admin page String Translations. Therefor, I created the entries automatically in the SQL database as ID=3 (1 is the title, 2 is the tagline/description). Now it does appear in the String Translations page… But it doesn’t show in the website (only the French value remains in both versions).
What am I missing?
http://wordpress.org/extend/plugins/sitepress-multilingual-cms/
The topic ‘[Plugin: WPML Multilingual CMS] Create extra string’ is closed to new replies.