From 05714da2ec41bcb389c73d4f95fcbebe78af140c Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Sat, 21 Aug 2004 21:13:29 +0000 Subject: Locale: - Fixing broken .po import (due to file.inc changes). - Do not show error notice on import page when no languages have been added (no longer necessary due to ability to add-and-import in one step). - Added a notice about importing possibly taking a while. - Raised the PHP execution time limit for importing (if not in safe mode, similar to cron.php). --- modules/locale.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/locale.module') diff --git a/modules/locale.module b/modules/locale.module index 836cb5089..f239bb176 100644 --- a/modules/locale.module +++ b/modules/locale.module @@ -26,7 +26,7 @@ function locale_help($section = "admin/help#locale") { case 'admin/locale/language/add': return t("

You need to add all languages you would like to provide the site interface in. If you can't find the desired language in the quick add dropdown, then need to provide the proper language code yourself. The language code might be used to negotiate with browsers and present flags, so it is important to pick one that is standardised for the desired language. You can also add languages by importing translations directly into a language not yet set up.

", array("%import" => url("admin/locale/language/import"))); case 'admin/locale/language/import': - return t("

This page allows you to import a translation provided in the gettext Portable Object (.po) format. The easiest way to get your site translated is to grab an existing Drupal translation and to import it. You can obtain translations from the Drupal localization page.

", array('%url' => 'http://drupal.org/localization')); + return t("

This page allows you to import a translation provided in the gettext Portable Object (.po) format. The easiest way to get your site translated is to grab an existing Drupal translation and to import it. You can obtain translations from the Drupal translation page.

", array('%url' => 'http://drupal.org/translations')); case 'admin/locale/language/export': return t("

This page allows you to export Drupal strings. The first option is to export a translation so it can be shared. The second option is to generate a translation template, which contains all Drupal strings, but without their translations. You can use this template to start a new translation using a specialized desktop application.

"); case 'admin/locale/string/search': @@ -385,7 +385,7 @@ function locale_admin_import() { // Now import strings into the language $file = file_check_upload('file'); - if ($ret = _locale_import_po($file->path, $edit['langcode'], $edit['mode']) == FALSE) { + if ($ret = _locale_import_po($file->filepath, $edit['langcode'], $edit['mode']) == FALSE) { watchdog('error', t('Translation import failed.')); watchdog('locale', t('Translation import failed.')); } -- cgit v1.2.3