[fixed] No Serbian language in Admin area

The members of the Dev team will place issues here that they consider to be solved.
Post Reply
scelle
Forum Members
Forum Members
Posts: 81
Joined: Sun Apr 24, 2011 8:14 pm
Location: Montenegro

[fixed] No Serbian language in Admin area

Post 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.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: No Serbian language in Admin area

Post 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).
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
scelle
Forum Members
Forum Members
Posts: 81
Joined: Sun Apr 24, 2011 8:14 pm
Location: Montenegro

Re: No Serbian language in Admin area

Post 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...
User avatar
Rolf
Dev Team Member
Dev Team Member
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: No Serbian language in Admin area

Post by Rolf »

sr_YU file added by uniqu3, please confirm fixed
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
scelle
Forum Members
Forum Members
Posts: 81
Joined: Sun Apr 24, 2011 8:14 pm
Location: Montenegro

Re: [fixed] No Serbian language in Admin area

Post 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!
Post Reply

Return to “Closed Issues”