Feature Issue ID 0000527: Language localization - local.lang.php can be added to each language directory. Authorize your own translation to be keep over migrations.
git-svn-id: http://piwigo.org/svn/trunk@1679 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
b1a6316ca2
commit
219447b9c8
4 changed files with 494 additions and 490 deletions
|
|
@ -254,6 +254,7 @@ function set_user_id_on_env_nbm($user_id)
|
|||
|
||||
// language files
|
||||
include(get_language_filepath('common.lang.php'));
|
||||
@include(get_language_filepath('local.lang.php'));
|
||||
// No test admin because script is checked admin (user selected no)
|
||||
// Translations are in admin file too
|
||||
include(get_language_filepath('admin.lang.php'));
|
||||
|
|
|
|||
|
|
@ -149,6 +149,7 @@ if (defined('IN_ADMIN') and IN_ADMIN)
|
|||
{
|
||||
include_once(get_language_filepath('admin.lang.php'));
|
||||
}
|
||||
@include_once(get_language_filepath('local.lang.php'));
|
||||
|
||||
// only now we can set the localized username of the guest user (and not in
|
||||
// include/user.inc.php)
|
||||
|
|
|
|||
|
|
@ -640,6 +640,7 @@ function redirect_html( $url , $msg = '', $refresh_time = 0)
|
|||
{
|
||||
$user = build_user( $conf['guest_id'], true);
|
||||
include_once(get_language_filepath('common.lang.php'));
|
||||
@include_once(get_language_filepath('local.lang.php'));
|
||||
list($tmpl, $thm) = explode('/', $conf['default_template']);
|
||||
$template = new Template(PHPWG_ROOT_PATH.'template/'.$tmpl, $thm);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -184,6 +184,7 @@ if (!file_exists(PHPWG_ROOT_PATH.'language/'.$language.'/install.lang.php'))
|
|||
}
|
||||
|
||||
include( './language/'.$language.'/common.lang.php' );
|
||||
// Never: @include( './language/'.$language.'/local.lang.php' );
|
||||
include( './language/'.$language.'/admin.lang.php' );
|
||||
include( './language/'.$language.'/install.lang.php' );
|
||||
//----------------------------------------------------- template initialization
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue