Page 1 of 1

[fixed] No Serbian language in Admin area

Posted: Sat Aug 20, 2011 5:16 pm
by scelle
Hi, I'm not sure if I should open a new topic for every problem I find (if I find them), so You could explain that in Rules.

And now on the issue at hand:

During the installation process I was able to select Serbian (sr_YU) and complete the process with no problems.

But, after that, in the Admin Panel, i could not select Serbian, either to be Front End or Admin default language. It wasn't listed in the combo boxes.

After I created nls file manually, everything was OK.

Re: No Serbian language in Admin area

Posted: Sat Aug 20, 2011 5:43 pm
by calguy1000
Can you paste that nls.php file and I'll see about including it in the distribution. We normally don't create nls files for a language till it has alot of coverage (i.e: the system is mostly translated to that language and we have reasonable confidence that it will be kept up to date).

Re: No Serbian language in Admin area

Posted: Sat Aug 20, 2011 8:49 pm
by scelle
CMS MS - or at least it's core and most important modules - is mostly translated in Serbian (my opinion) and I'm confident that it will be kept up to date. I know that at least I and uniq3 are active on the project. Right now I'm correcting some mistakes and making changes to make it more clearer and descriptive. Soon I'll have more time, so, unless a truck hits me or aliens abduct me, I'll translate even more. :)

Here's the NLS file's content:

Code: Select all

<?php
#CMS - CMS Made Simple
#(c)2004 by Ted Kulp (wishy@users.sf.net)
#This project's homepage is: http://cmsmadesimple.sf.net
#
#This program is free software; you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by
#the Free Software Foundation; either version 2 of the License, or
#(at your option) any later version.
#
#This program is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#GNU General Public License for more details.
#You should have received a copy of the GNU General Public License
#along with this program; if not, write to the Free Software
#Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

#NLS (National Language System) array.

#The basic idea and values was taken from then Horde Framework (http://horde.org)
#The original filename was horde/config/nls.php.
#The modifications to fit it for Gallery were made by Jens Tkotz
#(http://gallery.meanalto.com) 

#Ideas from Gallery's implementation made to CMS by Ted Kulp

#Serbian Latinic
#Created by: CMS MS Serbian Translation Team
#Maintained by: Slavko Scekic <scekics@gmail.com>


#Native language name
#NOTE: Enocde me with HTML escape chars like &#231; or &ntilde; so I work on every page
$nls['language']['sr_YU'] = 'Srpski (latinica)';
$nls['englishlang']['sr_YU'] = 'Sebian (latinic)';

#Possible aliases for language
$nls['alias']['sr'] = 'sr_YU';
$nls['alias']['serbian'] = 'sr_YU' ;
$nls['alias']['srp'] = 'sr_YU' ;
$nls['alias']['sr_YU'] = 'sr_YU' ;
$nls['alias']['sr_LAT'] = 'sr_YU' ;


#Encoding of the language
$nls['encoding']['sr_YU'] = 'UTF-8';

#Location of the file(s)
$nls['file']['sr_YU'] = array(dirname(__FILE__).'/ext/sr_YU/admin.inc.php');

#Language setting for HTML area
# Only change this when translations exist in HTMLarea and plugin dirs
# (please send language files to HTMLarea development)

$nls['htmlarea']['sr_YU'] = 'sr';
?>
I'm not sure about all the aliases, but they don't do any harm...

Re: No Serbian language in Admin area

Posted: Sun Aug 21, 2011 9:01 am
by Rolf
sr_YU file added by uniqu3, please confirm fixed

Re: [fixed] No Serbian language in Admin area

Posted: Sun Aug 21, 2011 11:59 am
by scelle
Yeah, everything looks good in the SVN version. Not in the one that can be downloaded from the website, though (I don't know where the change should be visible).

Thanks, uniqu3!