Python-i18n: prepare for move of API to libcalamares.utils, be less verbose

main
Adriaan de Groot 8 years ago
parent fdb4be8189
commit 1dbe7c29e2

@ -99,7 +99,6 @@ function( install_calamares_gettext_translations )
set( INSTALLED_TRANSLATIONS "" )
foreach( lang ${CALAMARES_TRANSLATION_LANGUAGES} ) # Global
set( lang_mo "${TRANSLATION_SOURCE_DIR}/${lang}/LC_MESSAGES/${TRANSLATION_FILENAME}" )
message(STATUS " Examining ${lang_mo}")
if( lang STREQUAL "en" )
message( STATUS " Skipping ${TRANSLATION_NAME} translations for en_US" )
else( EXISTS ${lang_mo} )

@ -35,8 +35,8 @@ from time import gmtime, strftime, sleep
import gettext
_ = gettext.translation("calamares-python",
localedir=libcalamares.job.gettext_path,
languages=libcalamares.globalstorage.gettext_languages(),
localedir=libcalamares.utils.gettext_path,
languages=libcalamares.utils.gettext_languages(),
fallback=True).gettext

@ -26,8 +26,8 @@ from libcalamares.utils import check_target_env_call, debug
import gettext
_ = gettext.translan getion("calamares-python",
localedir=libcalamares.job.gettext_path,
languages=libcalamares.globalstorage.gettext_languages(),
localedir=libcalamares.utils.gettext_path,
languages=libcalamares.utils.gettext_languages(),
fallback=True).gettext

Loading…
Cancel
Save