![]() |
Problem with italian translation
I have translated all the dafault strings of my Lifestyle theme with poedit. I just want to know which name I have to give to the two file .po and .mo Is it right it_IT.po (.mo) or it.po(.mo) or default.po(.mo)? I tried to upload each of those files but I don't see the italian translation of the strings. Tnx in advance
www.charliegolf.it/home |
Re: Problem with italian translation
|
Re: Problem with italian translation
I have read the tips and I made everthing written in it but my theme still remains in English. I have the it_IT.mo &.po file in languages folder theme but nothing happens.
http://www.charliegolf.it/home |
Re: Problem with italian translation
Looks like it is in Italian to me.
|
Re: Problem with italian translation
Actually I have the same problem with my Danish translation - my url is www.itsfashionbaby.dk
|
Re: Problem with italian translation
To me it is not in Italian. just only the posts i wrote. Don't know. I think it's missing something because my question is: how the theme knows to keep the italian .mo instead the default theme of the lifestyle?
Tnx |
Re: Problem with italian translation
Yes, you need to add all of the English words that are used within the theme, into your translation files. You can probably download one of the other 2 translation files & take a peek at what they did. You will see what words they translated from english to swedish for example.
|
Re: Problem with italian translation
Quote:
What am I doing wrong? Where can I download the translation files? |
Re: Problem with italian translation
Did you create the .po and .mo files with Poedit and upload them to the lifestyle/languages directory?
|
Re: Problem with italian translation
Quote:
The only thing, I can think of, is that I wasn't sure what to name the file, - if it should be da_DK or da_DA - but I don't know, if that even matters? |
Re: Problem with italian translation
File names should be da_DK.mo and da_DK.po
|
Re: Problem with italian translation
Quote:
I really cannot figure out, where it's gone wrong... |
Re: Problem with italian translation
What's the location of the files?
|
Re: Problem with italian translation
Quote:
httpdocs is my root directory |
Re: Problem with italian translation
Check the file permission settings for /languages
|
Re: Problem with italian translation
Quote:
|
Re: Problem with italian translation
I've just realised you probably don't have the right code in the theme's functions.php. Add this below the opening <?php tag:
Code:
function test_localization( $locale ) {Don't forget, you also need to be running Wordpress in Danish if you want all Wordpress core stuff in Danish. |
Re: Problem with italian translation SOLVEDDDD
SOLVED!!!!!!!!!!!!!!!!!!!1
I noticed that all the strings should have this structure: Code:
<?php _e("ENGLISH string", 'studiopress'); ?>Code:
__('English string', 'studiopress')Code:
<?php _e("ENGLISH string"'); ?>Code:
__('English string')Code:
, 'studiopress'It is not use to put the other function |
Re: Problem with italian translation SOLVEDDDD
Quote:
in which file is this? |
Re: Problem with italian translation
in all the template file header, comments and so on. Go to editor theme and check all the string missing the word studiopress
|
Re: Problem with italian translation
You're right - the texdomain name "studiopress" isn't in the code.
|
Re: Problem with italian translation
@ CHARLIEGOLF,
Can you post your functions.php file? I'm curious about something... |
Re: Problem with italian translation
Code:
<?php |
Re: Problem with italian translation
Thanks. :)
|
Re: Problem with italian translation
Quote:
Because in that case, it's not really internationalized... |
Re: Problem with italian translation
Yes, that's the way to fix it and no, it's not fully internationalised*. I've alerted Brian so that he is aware of the issue.
* To be picky, it is internationalised but the textdomain name isn't in the code. Functions.php is also missing this code: Code:
load_theme_textdomain('studiopress', TEMPLATEPATH.'/languages/'); |
Re: Problem with italian translation
Quote:
Where should this code be added to the functions.php? And should I still add the other code, you told me previously? |
Re: Problem with italian translation
Ignore the previous code I told you about (assuming you're not running a multilingual site) and add this just below the opening <?php tag at the top of the file:
Code:
load_theme_textdomain('studiopress', TEMPLATEPATH.'/languages/'); |
Re: Problem with italian translation
Thank you guys. I had the same problem in Spanish. Now almost everything run smooth.
BTW. Does any of you how to get the date in the head translated too? Is the only thing I couldn't... |
Re: Problem with italian translation
Hi,
If you're running WP in Spanish the date should be in Spanish. Can you post your URL? |
Re: Problem with italian translation
Hi Adew,
Actually, what I have seen is that the function date() is not part of Wordpress, but of PHP. So, if your server is running a PHP version in other language different than yours (well, if it is defined in config) and you do not have access to its configuration, you will have the date in the server's language. That is my problem right now. So, my solution for this have been this: In header.php, where it says: Code:
Code:
Antonio PD: I will post the URL as soon as the website is online, now I have running it in local (Xampp for Linux) |
Re: Problem with italian translation
Good work, Antonio! You're absolutely right, of course, we're talking about a standard PHP function not a WP function. Your solution looks good to me. :)
Looking forward to seeing your site when it's up and running. |
Re: Problem with italian translation
Just to thanks you guys, used all the stuff here and got my FR translation uploaded and working as well as changed the date!
I used that Spanish script and simply replace the days and months in FR of course, as well as the write format... Here it is for those who need it ready made: Code:
On another note, shouldn't you create a repository folder where people could upload their .po and .mo files... Would be good me think... Vincent |
Re: Problem with italian translation
Vincent,
Thanks for your post. I agree - a repository of translations would be an excellent idea, and I'll pass on your suggestion to Brian. :) |
Re: Problem with italian translation
Talking about the date translated, just noticed that the coments left on a post are dated as well...
Where would be to file to modify that date format?? edit: same when you click on a category page for example, the posts are listed chronologically, but using English date ... |
Re: Problem with italian translation
Quote:
|
Re: Problem with italian translation
Quote:
:) |
Re: Problem with italian translation
Sorry for being a complete blonde - but I'm not completely sure where to add the missing 'studiopress' in the various files.
Could anyone please post a screendump? |
Re: Problem with italian translation
The best thing to do would be to download the latest version from here as that has been updated with the correct localization code: viewtopic.php?f=8&t=2522
Quote:
|
Re: Problem with italian translation
Thank you so much - everything is working perfectly now!
Quote:
|
Re: Problem with italian translation
@ itsfashionbaby,
Glad to hear all is working now. :) |
Re: Problem with italian translation
Hi, I haven't figured out a way to make the Lifestyle theme to display the date in the correct language. I am using the Spanish version of Wordpress, I have translated all of it with poedit (as suggested) and everything is fine except the upper left date stamp.
I can always delete it from the header but I guess it looks kinda' cool there. Is there any way I could have a quick answer about this? Thanks! Edit: Oh, and I am using the current version (4.0) of the theme. |
Re: Problem with italian translation
Hi,
If your server is running PHP in Spanish, these dates will be translated automatically. |
| All times are GMT -5. The time now is 09:53 AM. |
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.