Elxis CMS Forum

Support => Language => Topic started by: CTPAHHuK on November 07, 2006, 11:45:50

Title: Russian translation
Post by: CTPAHHuK on November 07, 2006, 11:45:50
Begin translate language files into russian
Translation will be aviable soon (week or two)
Title: Re: Russian translation
Post by: datahell on November 07, 2006, 11:52:52
Thank you CTPAHHuK!
Will be very glad to send your translation to us to include it in the main Elxis distribution.
Title: Re: Russian translation
Post by: CTPAHHuK on November 07, 2006, 12:04:27
No problem ! I send it after finish job
I also write small announce about Elxis CMS in Mambo russian support community site
Title: Re: Russian translation
Post by: eliasan on November 07, 2006, 14:37:05
Thank you for both initiatives!
Title: Re: Russian translation
Post by: ahold on November 08, 2006, 06:53:31
to CTPAHHuK

Отлично. ждем. :)
Title: Re: Russian translation
Post by: nobody on November 11, 2006, 14:54:17
I want to make it too))
But how you change encoding?
I try to do this one, change

<?xml version="1.0" encoding="UTF-8" ?>  to
<?xml version="1.0" encoding="windows-1251" ?> in russian.xml and have no resault. Browser detect page as UTF-8 and its unreadable.

Its no problem to translate, but how to change encoding?
Tnx
Title: Re: Russian translation
Post by: eliasan on November 11, 2006, 16:27:48
Hi,

I am not specialist in Russian language, although I think of Russians as "brothers".

What I am sure of, is that you do not have to change encoding to something special. UTF-8 encoding supports also Russian language.
Title: Re: Russian translation
Post by: eliasan on November 11, 2006, 16:29:49
And just another note.

You may read the following article for more information:
https://www.elxis.org/index.php?option=com_content&task=view&id=48&Itemid=94&mylang=english

It gives detailed instructions on how to translate Elxis to your language.
Title: Re: Russian translation
Post by: datahell on November 12, 2006, 09:04:39
In that article there is something wrong. You can not name your language files whatever you like (ie german2006.php). Otherway Elxis automatic locale setting will fail and it will be always english. You must follow Elxis guidelines. Open includes/Core/locale.php to see how you must name each language (ie. russian for Russian, not ru! ). Encoding should be utf-8. You dont have any problem with this for any language. Just make sure you save your language files as utf-8 and not ANSI (use notepad++ or PsPad -my favourite).
Title: Re: Russian translation
Post by: sarexs on November 22, 2006, 12:54:18
Good afternoon  Eliasan . I ask you to inform where it is possible to send Russian package For Elxis--2006-3.
The package contains three folders (administrator, site, tools.), is executed in UTF-8. The main question,-
Who, as well as than can compensate my work on translation of language.
Regards, Dmitry Solomkin/Russia, Saratov/
Title: Re: Russian translation
Post by: eliasan on November 22, 2006, 13:35:20
Hi sarexs,

This is great news!

You may send your translation at datahell@elxis.org.

As for your question, I think that the best place to ask it, is the Russian subforum.
Unfortunately right now, we have no way to validate it.

Title: Re: Russian translation
Post by: datahell on November 22, 2006, 13:39:35
Congratulations sarexs! You translated even the tools, this is great. We can not validate your translation because we, unfortunately, do not speak Russian. If you think that contains translation errors we must find a way to validate your translation. Otherway we will add it for download as is.
Title: Re: Russian translation
Post by: steelcat on December 02, 2006, 19:02:22
Hello! I try to translate this engine to RUSSIAN LANGUAGE and find problem. Time data in search component not depend from adjustments in language files. And many other modules works in the same way. I think to produce new pack of engine for russian users with translation of all modules.
Title: Re: Russian translation
Post by: datahell on December 02, 2006, 20:02:17
Time adjustment for each language is located inside Gemini language files:

DEFINE('_GEM_DATE_FORMLC', "%A, %d %B %Y");
DEFINE('_GEM_DATE_FORMLC2', "%A, %d %B %Y %H:%M");


Change them to match russian time.

You display the date like this (current date):
mosCurrentDate(_GEM_DATE_FORMLC2);

Any date (you can also add offset):
$date = '2006-05-23 12:45:56';
mosFormatDate( $date, _GEM_DATE_FORMLC2);



You should run Elxis in a UNIX enviroment to see these changes as windows do NOT support utf-8 locale (ru_RU.utf8@euro). In a windows system locale is always set to English and so time appearence!

Elxis has been based to Mambo which did n't have multi-lingual enviroment. Maybe in some places we missed adding time support for all languages. Report this to us to fix it.

Send me what you have translated till now in Russian to see the problem (if exists).
datahell AT elxis DOT org
Title: Re: Russian translation
Post by: steelcat on December 04, 2006, 23:07:02
The original search.html.php file exist this strings

<?php
      foreach ($rows as $row) {
         if ($row->created) {
            $created = mosFormatDate ($row->created, '%d %B, %Y');
         } else {
            $created = '';
         }
         ?>

If I change '%d %B, %Y' to _GEM_DATE_FORMLC2 or _GEM_DATE_FORMLC all works properly?
And I find some bugs. Registration with voice don't refresh after authorization code refreshing.
Problem number two.
(http://www.ableton.spb.ru/media/problem.gif)
Title: Re: Russian translation
Post by: datahell on December 05, 2006, 09:03:06
%d %B, %Y should display a date like this: 04 December, 2006
It is not wise to put there a large formatted date because the column space is short.
What is the second problem??
Title: Re: Russian translation
Post by: CREATIVE Options on December 05, 2006, 09:54:43
may be the second problem are the table out of the main area, for the collum of how many time the content has been read.
Title: Re: Russian translation
Post by: datahell on December 05, 2006, 10:46:54
This has nothing to do with Elxis, it is a teplate-css related issue.
Title: Re: Russian translation
Post by: steelcat on December 05, 2006, 21:47:45
to Sirigos:
Yes, you read my thoughts.
to datahell:
I use this string for my language release: DEFINE('_GEM_DATE_FORMLC', "%d-%m-%Y");. It's universal decision for all languages. What about first problem? With voice engine in registration module?
Title: Re: Russian translation
Post by: datahell on December 05, 2006, 22:44:09
%d-%m-%Y will always (in any locale) display dates like this: 05-12-2006.
Nothing special as you only display digits! You don't need to use mosFormatDate to display dates like this. Of course you can do it, if you wish, but don't expect to see month names in Russian with this format.

mosFormatDate uses strftime PHP function to display days and months names in current locale. But in your translation of _GEM_DATE_FORMLC you just display digits! Read PHP manual for how to format a date to a current locale using strftime.

There is no bug/problem with the security images. Close the popup window, refresh the page and you will have a new security image and a new listening output. If the the sound repeat the old letters check your browser settings! If you are not sure what to do send me a link here to your Elxis site.
Title: Re: Russian translation
Post by: steelcat on December 05, 2006, 22:49:17
Sorry, I am not php-master. I am noob.  ;)
Title: Re: Russian translation
Post by: datahell on December 05, 2006, 22:53:53
There is no need to be a professional. We are here to help everybody works with Elxis. When you finish the translation you can send it to us to check it and make corrections if needed.
Title: Re: Russian translation
Post by: steelcat on December 05, 2006, 23:01:38
I try voice registration on virtual server named Denver. I refresh page, but problem remains.
Problem with tables was problem of my language file. I correct it.
Title: Re: Russian translation
Post by: datahell on December 06, 2006, 11:21:48
Provide a URL to your site to see if there is a problem with the security images. I think it has something to do with your browser but write here a link to your site to check it.
Title: Re: Russian translation
Post by: steelcat on December 07, 2006, 20:18:07
Hello! What  variable contains information about current language?
Russian date works properly with next string in elxis.php

$date=iconv("windows-1251","UTF-8",$date);

but english language date disappear.

Linux server no need in this string?
Title: Re: Russian translation
Post by: datahell on December 07, 2006, 22:29:26
Why use iconv???
You must encode your files as utf-8!

Open a text file, write in Russian and save it as utf-8. Finish! Nothing more! It is so simple!

Example, the first string in frontend russian.php should be:


Code: (php) [Select]
/** components/com_banners */
DEFINE('_BNR_CLIENT_NAME','Вы должны выбрать название для клиента.');

Do you want to translate it myself in Russian and then send it to you to make corrections?
Title: Re: Russian translation
Post by: steelcat on December 07, 2006, 22:40:14
We do not understand each other.
Title: Re: Russian translation
Post by: datahell on December 07, 2006, 23:09:18
I don't understand why you ask things that no one said that are required by Elxis.
Elxis just needs a file encoded as utf-8. Then you will have Elxis in russian.

Some information about Elxis language:

- Everything must be encoded as utf-8.

- Loaded language is the value of the global variable $lang in frontend and $alang in backend.

- Language in both front-end and backend is controled by class ElxisLang.

- In frontend Elxis uses PHP constants for the language strings (this done mostly for compatibility with 3rd part modules, components etc).

- In backend object $adminLanguage controls the language strings.

- For XML files object $xmlLanguage controls language strings.

- Gemini files are files that contain constants available in both Elxis frontend and backend.

- Elxis sets 2 cookies to remember user's prefered language: elxis_lang and elxis_alang respectively for Elxis front-end and backend.

- Locale sets automatically regarding the loaded language.

- class eUTF (Elxis UTF) provides support for handling utf-8 encoded strings that are not supported by PHP by default. You call eUTF statically (ie eUTF::utf8_substr(....) ).
Title: Re: Russian translation
Post by: steelcat on December 07, 2006, 23:39:14
Ok. Thanks. I create demo site. Please check the registration form. Voice registration refreshing don't work. http://site.reasonator.ru
Title: Re: Russian translation
Post by: eliasan on December 08, 2006, 09:07:58
Voice registration refreshing don't work.

Voice registration works OK with FireFox.
Voice registration works OK with IE. If you have problems, it is because of local settings of your computer. I had the same problem in my computer, but I have seen it working in other computers using IE. I haven't investigated more, because it is a minor problem.
Title: Re: Russian translation
Post by: steelcat on December 08, 2006, 21:18:37
In IE6:
1) Press "Create One" in Main Menu.
2) I see, for example, YNJDgN.
3) Press "Spell". Voice talk "YNJDgN".
4) Refresh page. After that I see "fgkjyH"
5) But voice talk "YNJDgN".
In Opera9:
1) Press "Create One" in Main Menu.
2) I see, for example, YNJDgN.
3) Press "Spell". Voice talk "YNJDgN".
4) Refresh page. After that I see "fgkjyH"
5) But voice talk "YNJDgN".
In FireFox 1.5.0.4:
1) Press "Create One" in Main Menu.
2) I see, for example, YNJDgN.
3) Press "Spell". Voice talk "YNJDgN".
4) Refresh page. After that I see "fgkjyH"
5) But voice talk "YNJDgN".

You understand me?

On the official ELXIS site in registration module code not changes after page refresh. And voice talk correctly  ;D
Title: Re: Russian translation
Post by: datahell on December 08, 2006, 22:18:30
Use firefox.
Go to your site.
Remove all cookies using the firefox feature.
Click on the "register" or "lost password" link.
Click on the speaker icon. It should play fine.
Title: Re: Russian translation
Post by: steelcat on December 09, 2006, 00:00:39
Its very difficult for simple users. i know about cookies, you know this, but noobe dont know.  >:(
I switch off this feature  on my site. Please, publish registration component of Elxis site.
Title: Re: Russian translation
Post by: CTPAHHuK on December 14, 2006, 20:33:48
Russian language file for Elxis installer is ready and attached in this post :
https://forum.elxis.org/index.php?topic=146.msg1585#msg1585
Title: Re: Russian translation
Post by: datahell on December 14, 2006, 21:27:50
Congratulations CTPAHHuK!
I personally thank you very much.  :)