Skip to content

Commit

Permalink
Add Czech language to site prefs
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffhumphrey committed Sep 24, 2019
1 parent 8c5543a commit ad83696
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion admin/site_preferences.admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -1180,7 +1180,7 @@
<!-- Input Here -->
<select class="selectpicker" name="prefsLanguage" id="prefsLanguage" data-live-search="false" data-size="10" data-width="auto">
<?php foreach ($languages as $lang => $lang_name) { ?>
<option value="<?php echo $lang; ?>" <?php if ($row_prefs['prefsLanguage'] == $lang_name) echo "SELECTED"; ?>><?php echo $lang_name; ?></option>
<option value="<?php echo $lang; ?>" <?php if ($row_prefs['prefsLanguage'] == $lang) echo "SELECTED"; ?>><?php echo $lang_name; ?></option>
<?php } ?>
</select>
<span id="helpBlock" class="help-block">The language to display on all <em>public</em> areas of your installation (e.g., entry information, volunteers, account pages, etc.).</span>
Expand Down
3 changes: 2 additions & 1 deletion includes/constants.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
*/

$languages = array(
"en-US" => "US English"
"en-US" => "US English",
"cs-CZ" => "Czech"
);

/** -------------------------- Theme File names and Display Name -------------------------------
Expand Down
7 changes: 7 additions & 0 deletions lang/cz/cs-CZ.lang.php → lang/cs/cs-CZ.lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -1505,6 +1505,13 @@
$brewer_entries_text_023 = "Štítky lahví se otevřou na nové záložce nebo v novém okně.";
$brewer_entries_text_024 = "Vytisknout štítky lahví";

// ----------------------------------------------------------------------------------
// Version 2.1.18 Additions
// ----------------------------------------------------------------------------------

$output_text_031 = "Stisknutím klávesy Esc skryjete.";


// ***********************************************************************************
// END TRANSLATIONS
// ***********************************************************************************
Expand Down
File renamed without changes.

0 comments on commit ad83696

Please sign in to comment.