*New 11.3 series Release:
2019-10-05: XigmaNAS 11.3.0.4.6928 - released, 11.2 series are soon unsupported!

*New 12.0 series Release:
2019-10-05: XigmaNAS 12.0.0.4.6928 - released!

*New 11.2 series Release:
2019-09-23: XigmaNAS 11.2.0.4.6881 - released!

We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

Magyar fordítás

Hungarian community

Moderator: kkd

Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
User avatar
kkd
Forum Moderator
Forum Moderator
Posts: 303
Joined: 08 May 2013 21:47
Location: Budapest, Hungary
Contact:
Status: Offline

Magyar fordítás

#1

Post by kkd » 13 Jun 2013 09:42

9.1.0.1.775:
Elkészült a NAS4Free magyar fordítása, sőt a QuiXplorer fájlkezelő is használható már magyarul.
Az esetleges hibákat kérem jelezd.

Amennyiben bejelentkezéskor szeretnél nyelvet választani, kis módosításra van szükség (a ... nem kell a fájlokba):
/etr/inc/system.inc fájlban cserélj le egy sort a 65. sorban:

Code: Select all

...
function system_language_load()
{
	global $config, $g_languages;

	/* Get the language configured. */

/* !!! */
	/* $language = $config['system']['language'];  */
	$language = $_SESSION['language'];
/* !!! */

	$domain = strtolower(get_product_name());
	$codeset = $g_languages[$language]['codeset'];

	putenv("LANG=$language");
	setlocale(LC_MESSAGES, $language);
	bindtextdomain($domain, "/usr/local/share/locale");
	bind_textdomain_codeset($domain, $codeset);
	textdomain($domain);
}
...
/etc/inc/session.inc fájlba szúr be ezeket a sorokat pl. a 73 sor után:

Code: Select all

...
	public static function initLang($language, $touchscreen = FALSE) {
		Session::_init();
		$_SESSION['language'] = $language;
		$_SESSION['touchscreen'] = $touchscreen;
	}
...
/usr/local/www/login.php 46. sor környéke:

Code: Select all

...
		Session::initAdmin();
/* !!! */
		Session::initLang($_POST['language']);
/* !!! */
		header('Location: index.php');
		exit;
...
/usr/local/www/login.php 61. sor környéke:

Code: Select all

...
				Session::initUser($userv['uid'], $userv['name']);
/* !!!*/
				Session::initLang($_POST['language']);
/* !!! */
				header('Location: index.php');
				exit;
...
/usr/local/www/login.php 240. sor környéke:

Code: Select all

...
<tr>
	<td><b><?=gettext("Password");?>:</b></td>
	<td><input class="formfld" type="password" name="password" value="" /></td>
</tr>

/*!!!*/
<?php 
$pconfig['language'] = $config['system']['language'];
if (!$pconfig['language']) 
	$pconfig['language'] = "English";
html_languagecombobox("language", gettext("Language"), $pconfig['language'], "", "", false);
?>
/*!!!*/
<tr>
	<td align="right" colspan="2"><input class="formbtn" type="submit" value="<?=gettext("Login");?>" /></td>
</tr>
...
vagy cseréld a le a fent említett 3 fájlt a csatolmányban lévőkre.
You do not have the required permissions to view the files attached to this post.
XigmaNAS x64-embedded | INTEL Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz | 9216MiB RAM | X x YTB WD Red ZFS mirror compressed

Post Reply

Return to “Magyar”