| Translation guide [message #3084] |
Thu, 18 January 2007 09:22  |
adminmaster  Messages: 102 Registered: July 2005 |
Valuable Member Administrator |
|
|
This is a small walkthrough for hypervm translation. Translation is fairly straightforward. The only thing you need to remember is that there is a function called as get_plural and in the lanfunctions.php file, and u will have to write it specifically for each language. The function takes a word and returns its plural.
In english the get_plural checks whether the word ends in a 'y' or and 's' and returns the equivalent plural, otherwise just adds an 's' to teh word and returns it.
function get_plural ($word)
{
return $word . "s";
}
The rest are straightforward php assignment statements of the form:
$_emessage['invald_email'] = "The Email Address [%s] is Invalid".
Just make sure that that '[%s]' is retained. It stands for the variable that is being described by the error.
[Updated on: Tue, 25 May 2010 00:52] by Moderator Report message to a moderator
|
|
|
|
|
| Re: Translation guide [message #3097 is a reply to message #3094] |
Thu, 18 January 2007 21:13   |
Lxhelp Messages: 23691 Registered: July 2006 |
The Champion |
|
|
| Quote: |
>
>
> After the translation we can apply the new file directly on our server?
> When we upgrade hypervm to last version is possible to lost all file?
|
You can submit it here itself, and I will add it to hyperVM. The problem is that the translations can get overwritten if you update. We will fix this later.
Thanks.
|
|
|
|
| Re: Translation guide [message #6203 is a reply to message #6202] |
Thu, 07 June 2007 18:22   |
Lxhelp Messages: 23691 Registered: July 2006 |
The Champion |
|
|
| Quote: |
>
>
> I added a new language dir (bg) under the lang folder but Bulgarian doesn't appear in Client Home -> Appearance. What did I miss?
|
It needs to be properly referenced internally. I will add the relevant entry to hypervm and update it shortly. Then you will be able to see it.
Thanks.
|
|
|
|
|
| Re: Translation guide [message #6206 is a reply to message #6204] |
Thu, 07 June 2007 18:30   |
Lxhelp Messages: 23691 Registered: July 2006 |
The Champion |
|
|
| Quote: |
>
>
> Also is it possible to add a configuration to the language files for browser character encoding? I will need different from ISO-8859-1 encoding in my language (windows-1251). Thank you.
|
If you can explain how to do that, we will add it now itself.
Thanks.
|
|
|
|
| Re: Translation guide [message #6209 is a reply to message #6208] |
Thu, 07 June 2007 18:43   |
Lxhelp Messages: 23691 Registered: July 2006 |
The Champion |
|
|
| Quote: |
>
>
> well, for example you put in the desclib.php file the following var:
> $__description["charset"] = array("windows-1251");
>
> Then in you main index.php page (or whatever is the name of the main page that aggregates all the pages to be displayed to the browser) you add at the top something like this:
> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $__description["charset"]; ?>" />
>
>
> This way different languages can use different character encodings.
> The last thing would be to save the language file with the appropriate encoding but this is something a language developer should take care.
|
We will add this by tomorrow.
thanks.
|
|
|
|
|
| Re: Translation guide [message #6432 is a reply to message #6317] |
Mon, 11 June 2007 14:49   |
Lxhelp Messages: 23691 Registered: July 2006 |
The Champion |
|
|
| Quote: |
>
>
> I do translation HyperVM into russian language. Add, please, an entry for ru.
> Thanks
>
|
Hi,
'ru' is available in the latest version.
Thanks.
|
|
|
|
| Re: Translation guide [message #7600 is a reply to message #7594] |
Fri, 29 June 2007 12:12   |
Lxhelp Messages: 23691 Registered: July 2006 |
The Champion |
|
|
| Quote: |
>
> Hi, any progress on this? I depend on having hypervm and lxadmin in bulgarian and without this feature it will be difficult for my clients to navigate. Thank you.
|
We are working on a complete rewrite of the internal display. Remove the simple_Xml too, so that you can have met-characters in the display. it will be available by next week.
Thanks.
|
|
|
|
|
| Re: Translation guide [message #24271 is a reply to message #24266] |
Sun, 02 March 2008 13:05   |
Lxhelp Messages: 23691 Registered: July 2006 |
The Champion |
|
|
You need to create it. Actually, you should ask the people who have already translated it, to contribute it back.
| Quote: |
On Sun, Mar 02, 2008 at 06:02:42PM -0000, Anton wrote:
>
> I have updated HyperVM before the last version but as well as has not seen the russian language.
> Prompt where possible his take?
|
|
|
|
|
|
|
|
|
|
| Re: Translation guide [message #41248 is a reply to message #41246] |
Sun, 12 October 2008 04:45   |
Lxhelp Messages: 23691 Registered: July 2006 |
The Champion |
|
|
Copy en to pl and then go to admin home -> appearance and polish will appear there.
On Sun, Oct 12, 2008 at 08:24:43AM -0000, HitMe wrote:
>
>
> Hi,
> Could You please post here the most actual english language file to translate?
>
> Regards,
> Rob
> HitMe.pl
>
>
|
|
|
|
| Re: Translation guide [message #77894 is a reply to message #41249] |
Wed, 24 November 2010 15:03   |
|
How do language translation in the directory of help and help-base? they do not support the language folder, such as it was necessary to do so:
/usr/local/lxlabs/kloxo/httpdocs/help/en/...
/usr/local/lxlabs/kloxo/httpdocs/help/ru/... etc.
|
|
|
|