You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5d8e4e6
Browse filesBrowse the repository at this point in the historyBrowse files
echo"<p><b>" . sprintf(_("Warning: While a locale translation exists for %s, a system locale does not. Without a system locale installed, gettext will not use this translation."), $locale) . "</b></p>";
365
+
echo"<p class='warning'>" . sprintf(_("While a locale translation exists for %s, a system locale does not. Without a system locale installed, gettext will not use this translation."), $locale) . "</p>";
. date("F d Y H:i:s", $po_file->last_modified) . ")";
380
+
. _("Download") . "</a></li>";
381
+
echo"<li>" . _("Last modified") . ": " . date("F d Y H:i:s", $po_file->last_modified) . "</li>";
385
382
386
-
echo" - ";
383
+
echo"<li>";
387
384
echosprintf(
388
385
_('%1$s of %2$s translated (%3$d%%)'),
389
386
$translated_strings,
390
387
$total_strings,
391
388
$translated_strings / $total_strings * 100
392
389
);
393
-
echo"</p>";
390
+
echo"</li>";
394
391
395
392
$pot_filename = "$dyn_locales_dir/messages.pot";
396
393
$pot_file = newPOFile($pot_filename);
397
394
if ($pot_file->exists && $pot_file->last_modified > $po_file->last_modified) {
398
-
echo"<p>" . _("The current template is more recent than the PO file. You should merge the PO file with the current template.") . "</p>";
395
+
echo"<li class='warning'>" . _("The current template is more recent than the PO file. You should merge the PO file with the current template.") . "</li>";
399
396
}
397
+
echo"</ul></p>";
398
+
399
+
echo"<h2>" . _("Update PO with current template") . "</h2>";
. attr_safe(_("Merge current PO file with the current template")) . "'> ";
405
-
echo_("Run <code>msgmerge</code> to update the current PO file against the current template.") . "<br>\n";
403
+
echo"<p>" . _("Run <code>msgmerge</code> to update the current PO file against the current template to pick up new strings that need translation.") . "</p>\n";
. _("Do fuzzy matching when an exact match is not found (can be much slower but more accurate)") . "<br>" ;
408
-
echo"</form><br><br>\n";
406
+
echo"<input type='submit' value='"
407
+
. attr_safe(_("Merge PO file with template")) . "'> ";
408
+
echo"</form>\n";
409
409
} else {
410
410
echo"<p>" . _("No PO file.") . "</p>\n";
411
411
}
412
412
413
+
echo"<h2>" . _("Upload new PO file") . "</h2>";
414
+
415
+
echo"<p>" . _("This replaces the current PO file with the file you provide, and installs the translation for use by the site. Strings marked as \"fuzzy\" are not included in the new translation catalog. Be sure your PO file does not have any marked as fuzzy that you want used.") . "</p>";
0 commit comments