PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Classifieds How do I...? (http://www.photopost.com/forum/classifieds-how-do-i/)
-   -   4.0 Language (http://www.photopost.com/forum/classifieds-how-do-i/142216-4-0-language.html)

Mike_K March 1st, 2010 11:18 AM

4.0 Language
 
I must translate all to german language.

Is it correct, that the phrases aren't saved in language files? Only saved in the database?

Where are the pharases located which are imported during the installation?

Chuck S March 1st, 2010 11:33 AM

The classifieds is released with all the strings in english. The file is named phrases.php

Here is a short tutorial if you want to make a file to use on your install

Take the default phrases.php

Inside here is the top of the queries

Code:

Content visible to verified customers only.
Now you need to make the new language in the language database and I have included the first phrase as an example of what you want to translate

Any reference to 1 needs to be the new language id. I am using 2 as an example
Code:

Content visible to verified customers only.
The above should show you what needs to be done to make a new phrase file in german. You change the langid to 2 make a new language with an id of 2 and the first translation is the text to translate the second is the original which stays the same.

Mike_K March 1st, 2010 01:02 PM

Thank you Chuck! But after looking into phrases.php I think it's easier to take the build-in translation system. There I can see immediatly which effect it takes. And also I can see what to be translate (not all phrases are neccessary for the users).

btw: Maybe I am ready with it until Classifieds 5.0 :-) .... is it possible that other users can work with an SQL export file of the translated phrases?

Chuck S March 1st, 2010 01:10 PM

any user who is a native speaker of a language can submit translations for review

vkrm March 10th, 2010 01:57 AM

At least all the texts from the frontend should be translatet i think.

Can you say for example, what must i change in german.php to change "Most Recent · Most Popular · Random" into "Neueste Fotos - Beliebteste - Zufällig"?

Chuck S March 10th, 2010 05:47 AM

where is this that you talk about?

You translated strings for all phrases.php right?

is this a classifieds question.

Mike_K March 10th, 2010 08:08 AM

1 Attachment(s)
I think he is talking about the Gallery maybe the "most recent additions section"

Code:

Content visible to verified customers only.
This phrase isn't in the language file. I don't also not where it is.

Chuck S March 10th, 2010 08:21 AM

pp-inc.php in the display_gallery function. There is a hard coded line that one can change to the language strings which do exist.

Mike_K March 10th, 2010 09:18 AM

Thank you!

Chuck S March 10th, 2010 12:10 PM

Your welcome enjoy your day


All times are GMT -5. The time now is 09:08 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97