Just nu i M3-nätverket
Gå till innehåll

Problem med översättning


mac3

Rekommendera Poster

Hej ,
Jag tänkte fråga nån som vet om hur kommer sig att vissa översättningar går inte genom.

Jag har följt deras handbok hur man översättar deras wordpress tema (idstore) 
 

The translation file you can find in languages folder (/wp-content/themes/idstore/languages). Edit the .pot file using POEdit, use the translation field to make replacements. Read here how to do it right.
 
From the file menu, save file with your language name e.g de_DE.po into languages folder. It will generate both a .po and .mo file for your translation.
 
Next edit wp-config.php located in the root folder of wordpress and define the WPLANG prefix with your language name which should be similar to the translation file name.
 
If you use WordPress 4.0 and higher use the $locale with prefix. For example: $locale='de_DE';
 
när jag kollar php koden se det rätt ut
mitt exempel kommer inte den här texten översättas  ändå  finns texten i både po filen och finns en mo     
$label = apply_filters('add_to_cart_text', __('Add to cart', ETHEME_DOMAIN));
 
det som konstigt att vissa texter blir översättas 

 

 

Länk till kommentar
Dela på andra webbplatser

Arkiverat

Det här ämnet är nu arkiverat och är stängt för ytterligare svar.

×
×
  • Skapa nytt...