This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Language pack or built language on the main installation?
#1
Language pack or built language on the main installation?
I will work on the language translation of Sentora during the next few weeks.

What do you prefer? Make the language built in on the main sentora installation

Or..

Make languages pack where the people can adds?


or both... built in for the most populars languages and make language pack for the others onces.  

E.S.  Big Grin
Reply
Thanks given by: tkramer , Noansg
#2
RE: Language pack or built language on the main installation?
We are eventually planning on making external language packs. This way also Modules can be translated with their own language packs too.

Something like:
/panel/languages/en-US.php

/panel/modules/[modulename]/languages/en-US.php

We already have a basic framework we have decided on but it will be for a later release.

I will have a chat with Me.B and refresh my memory on the plans.


My proposed version would allow us to use something like this: http://translate.supersimplecms.tk/ for use with the core translations depending on how we decide to work the variables.. Huh
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
Thanks given by: tkramer , Xversion
#3
RE: Language pack or built language on the main installation?
ATM all the variables are on the table x_translations of the sentora_core.
Just to do a sql request with a altern table with a update for each id_pk.
It's look fine and easy to use, but probably not optium with many columns.

Do you think to use a other method for the futur release? I'm not sure about the php files, maybe a xml may be more useful and easier to dev on for the community.
Reply
Thanks given by:
#4
RE: Language pack or built language on the main installation?
I have worked with many projects, and using a different file for each language is very common and easier (and faster) than using a database driven translation system. When we started Zpanel, it was file based. But as things progressed we tried, and switched to db based as our lead developer at the time figured it would be easier to maintain. Which has since proven different Sad
We even had a translation site which is now offline that allowed members to edit and add translations that, using a module, could update and import new languages into the database with ease. One of the main drawbacks of using the db for translations is that custom modules, like sentastico,  error pages editor, etc. Would also need to be incorporated making the language database huge depending on how many languages you wanted to support. And, if you didn't use sentastico, the translations would still be there. Using language files for the core and separate language files for modules proves to be much easier to maintain and create. And if the selected module language doesn't exist it can fallback to English (Sentora default). The hard part is sorting out how to 'easily' convert the current db style to read from files instead of the db without rewriting all of the coding...
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
Thanks given by:
#5
RE: Language pack or built language on the main installation?
Ok, after I said all that lol.

Xml would be too 'complicated' as I worked with that also.

Using an array or defining the variables is much easier.

Basically in the core you have, for example,  _logout
Now, in your language file it would be  something like: _logout = "Logout";
Now, if something is not translated,  you would see either _logout or the English (default) equivalent (depending on how we code that).
If you want, I can show you the source and examples for translations of the project I mentioned above to help give you a better idea through PM.
Reply
Thanks given by: tkramer
#6
RE: Language pack or built language on the main installation?
Very good! You can count me in the translation to Brazilian Portuguese!
Reply
Thanks given by:
#7
RE: Language pack or built language on the main installation?
Oki, so I will work on the x_translation table for now, and when the new architecture will be ready for the next Sentora Version, just tell us the way the standard will set and we will transfert our translation on the new standard.

So we will be able to have more than just english at the start of the new version.
Reply
Thanks given by:
#8
RE: Language pack or built language on the main installation?
If some people want to help for the translation of your language, please just to push the sql dump of your x_translate table as attached file on this post. I will work on a sort language pack script for update the DB with your translation DB.
Reply
Thanks given by: TGates


Possibly Related Threads…
Thread Author Replies Views Last Post
Trad. Chinese Language. akong 1 8 ,171 10-11-2017, 04:54 PM
Last Post: trucdev88
Dutch language Rick 1 9 ,805 06-21-2015, 04:56 AM
Last Post: bbspike
Changing the language in Sentora mikkelwilk 5 19 ,217 03-12-2015, 09:21 PM
Last Post: magvay

Forum Jump:


Users browsing this thread: 1 Guest(s)