diff --git a/modules/expirycheck/dictionaries/warning.definition.json b/modules/expirycheck/dictionaries/expwarning.definition.json similarity index 100% rename from modules/expirycheck/dictionaries/warning.definition.json rename to modules/expirycheck/dictionaries/expwarning.definition.json diff --git a/modules/expirycheck/dictionaries/warning.translation.json b/modules/expirycheck/dictionaries/expwarning.translation.json similarity index 55% rename from modules/expirycheck/dictionaries/warning.translation.json rename to modules/expirycheck/dictionaries/expwarning.translation.json index 195225099e492f8344b250c20932ba419cbcbd49..4ecd5a39f1a6480d23727bc997878dd8fe5ee123 100644 --- a/modules/expirycheck/dictionaries/warning.translation.json +++ b/modules/expirycheck/dictionaries/expwarning.translation.json @@ -1,46 +1,57 @@ { "access_denied": { "en": "You do not have access to this service", - "sl": "Dostop do storitve zavrnjen." + "sl": "Dostop do storitve zavrnjen.", + "cs": "Nem\u00e1te p\u0159\u00edstup k t\u00e9to slu\u017eb\u011b." }, "no_access_to": { "en": "Your account %NETID% has expired, access denied!", - "sl": "Dostop zavrnjen, ker je va\u0161e uporabni\u0161ko (NetID) %NETID% ime poteklo!" + "sl": "Dostop zavrnjen, ker je va\u0161e uporabni\u0161ko (NetID) %NETID% ime poteklo!", + "cs": "V\u00e1\u0161 \u00fa\u010det %NETID% expiroval, p\u0159\u00edstup odm\u00edtnut!" }, "contact_home": { "en": "Access to services is controlled by your home organization. Please contact your local IT support for questions.", - "sl": "Mo\u017enost dostopa do storitve ureja va\u0161a doma\u010da organizacija. Obrnite se na njihov oddelek za pomo\u010d uporabnikom." + "sl": "Mo\u017enost dostopa do storitve ureja va\u0161a doma\u010da organizacija. Obrnite se na njihov oddelek za pomo\u010d uporabnikom.", + "cs": "P\u0159\u00edstup ke slu\u017eb\u011b je \u0159\u00edzen Va\u0161\u00ed domovskou organizac\u00ed. Pros\u00edm, kontaktujte sv\u00e9ho lok\u00e1ln\u00edho spr\u00e1vce." }, "expiry_date_text": { "en": "Expiration date:", - "sl": "Datum poteka:" + "sl": "Datum poteka:", + "cs": "Datum expirace:" }, "warning_header": { "en": "Warning, your account %NETID% will expire in %DAYSLEFT% %DAYS%!", - "sl": "Pozor! Va\u0161e uporabni\u0161ko ime (NetID) %NETID% bo poteklo \u010dez %DAYSLEFT% %DAYS%!" + "sl": "Pozor! Va\u0161e uporabni\u0161ko ime (NetID) %NETID% bo poteklo \u010dez %DAYSLEFT% %DAYS%!", + "cs": "Pozor! V\u00e1\u0161 \u00fa\u010det %NETID% expiruje za %DAYSLEFT% %DAYS%!" }, "warning_header_today": { "en": "Warning, your account %NETID% will expire today!", - "sl": "Pozor! Va\u0161e uporabni\u0161ko ime (NetID) %NETID% pote\u010de danes!" + "sl": "Pozor! Va\u0161e uporabni\u0161ko ime (NetID) %NETID% pote\u010de danes!", + "cs": "Pozor! V\u00e1\u0161 \u00fa\u010det %NETID% dnes expiruje!" }, "warning": { "en": "Warning, your account %NETID% will expire in %DAYSLEFT% %DAYS%!", - "sl": "Pozor! Va\u0161e uporabni\u0161ko ime (NetID) %NETID% bo poteklo \u010dez %DAYSLEFT% %DAYS%!" + "sl": "Pozor! Va\u0161e uporabni\u0161ko ime (NetID) %NETID% bo poteklo \u010dez %DAYSLEFT% %DAYS%!", + "cs": "Pozor! V\u00e1\u0161 \u00fa\u010det %NETID% expiruje za %DAYSLEFT% %DAYS%!" }, "warning_today": { "en": "Warning, your account %NETID% will expire today!", - "sl": "Pozor! Va\u0161e uporabni\u0161ko ime (NetID) %NETID% pote\u010de danes!" + "sl": "Pozor! Va\u0161e uporabni\u0161ko ime (NetID) %NETID% pote\u010de danes!", + "cs": "Pozor! V\u00e1\u0161 \u00fa\u010det %NETID% dnes expiruje!" }, "day": { "en": "day", - "sl": "dan" + "sl": "dan", + "cs": "den" }, "days": { "en": "days", - "sl": "dni" + "sl": "dni", + "cs": "dn\u00ed" }, "btn_continue": { "en": "I am aware of this, continue..." , - "sl": "Zavedam se tega, nadaljuj..." + "sl": "Zavedam se tega, nadaljuj...", + "cs": "Jsem si toho vědom, pokračovat..." } } diff --git a/modules/expirycheck/templates/about2expire.php b/modules/expirycheck/templates/about2expire.php index eadb4bb86fe2dc46fe33871aa1c6db61214db9ae..953cbf2e684bd8921437be321d722c84fff765c4 100644 --- a/modules/expirycheck/templates/about2expire.php +++ b/modules/expirycheck/templates/about2expire.php @@ -18,15 +18,15 @@ */ -//$this->data['header'] = $this->t('{expirycheck:warning:warning_header}'); +//$this->data['header'] = $this->t('{expirycheck:expwarning:warning_header}'); # netid will expire today if ($this->data['daysleft'] == 0) { - $this->data['header'] = $this->t('{expirycheck:warning:warning_header_today}', array( + $this->data['header'] = $this->t('{expirycheck:expwarning:warning_header_today}', array( '%NETID%' => htmlspecialchars($this->data['netId']) )); - $warning = $this->t('{expirycheck:warning:warning_today}', array( + $warning = $this->t('{expirycheck:expwarning:warning_today}', array( '%NETID%' => htmlspecialchars($this->data['netId']) )); @@ -34,37 +34,37 @@ if ($this->data['daysleft'] == 0) { # netid will expire in one day elseif ($this->data['daysleft'] == 1) { - $this->data['header'] = $this->t('{expirycheck:warning:warning_header}', array( + $this->data['header'] = $this->t('{expirycheck:expwarning:warning_header}', array( '%NETID%' => htmlspecialchars($this->data['netId']), - '%DAYS%' => $this->t('{expirycheck:warning:day}'), + '%DAYS%' => $this->t('{expirycheck:expwarning:day}'), '%DAYSLEFT%' => htmlspecialchars($this->data['daysleft']), )); - $warning = $this->t('{expirycheck:warning:warning}', array( + $warning = $this->t('{expirycheck:expwarning:warning}', array( '%NETID%' => htmlspecialchars($this->data['netId']), - '%DAYS%' => $this->t('{expirycheck:warning:day}'), + '%DAYS%' => $this->t('{expirycheck:expwarning:day}'), '%DAYSLEFT%' => htmlspecialchars($this->data['daysleft']), )); } # netid will expire in next <daysleft> days else { - $this->data['header'] = $this->t('{expirycheck:warning:warning_header}', array( + $this->data['header'] = $this->t('{expirycheck:expwarning:warning_header}', array( '%NETID%' => htmlspecialchars($this->data['netId']), - '%DAYS%' => $this->t('{expirycheck:warning:days}'), + '%DAYS%' => $this->t('{expirycheck:expwarning:days}'), '%DAYSLEFT%' => htmlspecialchars($this->data['daysleft']), )); - $warning = $this->t('{expirycheck:warning:warning}', array( + $warning = $this->t('{expirycheck:expwarning:warning}', array( '%NETID%' => htmlspecialchars($this->data['netId']), - '%DAYS%' => $this->t('{expirycheck:warning:days}'), + '%DAYS%' => $this->t('{expirycheck:expwarning:days}'), '%DAYSLEFT%' => htmlspecialchars($this->data['daysleft']), )); } -//$this->data['header'] = str_replace("%DAYSLEFT%", $this->data['daysleft'], str_replace("%NETID%", $this->data['netId'], $this->t('{expirycheck:warning:warning_header}'))); +//$this->data['header'] = str_replace("%DAYSLEFT%", $this->data['daysleft'], str_replace("%NETID%", $this->data['netId'], $this->t('{expirycheck:expwarning:warning_header}'))); $this->data['autofocus'] = 'yesbutton'; $this->includeAtTemplateBase('includes/header.php'); @@ -80,9 +80,9 @@ $this->includeAtTemplateBase('includes/header.php'); } ?> <h3><?php echo $warning; ?></h3> - <p><?php echo $this->t('{expirycheck:warning:expiry_date_text}') . " " . $this->data['expireOnDate']; ?></p> + <p><?php echo $this->t('{expirycheck:expwarning:expiry_date_text}') . " " . $this->data['expireOnDate']; ?></p> - <input type="submit" name="yes" id="yesbutton" value="<?php echo htmlspecialchars($this->t('{expirycheck:warning:btn_continue}')) ?>" /> + <input type="submit" name="yes" id="yesbutton" value="<?php echo htmlspecialchars($this->t('{expirycheck:expwarning:btn_continue}')) ?>" /> </form> diff --git a/modules/expirycheck/templates/expired.php b/modules/expirycheck/templates/expired.php index 0edd9aaad63e7fad059d9b1b935dab77ca7e0291..817589f5dab0e015bc454d0322f55dbd71b5a92b 100644 --- a/modules/expirycheck/templates/expired.php +++ b/modules/expirycheck/templates/expired.php @@ -1,12 +1,12 @@ <?php -$this->data['header'] = $this->t('{expirycheck:warning:access_denied}'); +$this->data['header'] = $this->t('{expirycheck:expwarning:access_denied}'); $this->includeAtTemplateBase('includes/header.php'); ?> - <h2><?php echo $this->t('{expirycheck:warning:access_denied}');?></h2> - <p><?php echo $this->t('{expirycheck:warning:no_access_to}', array('%NETID%' => htmlspecialchars($this->data['netId'])));?></p> - <p><?php echo $this->t('{expirycheck:warning:expiry_date_text}');?> <b><?php echo htmlspecialchars($this->data['expireOnDate']);?></b></p> - <p><?php echo $this->t('{expirycheck:warning:contact_home}');?></p> + <h2><?php echo $this->t('{expirycheck:expwarning:access_denied}');?></h2> + <p><?php echo $this->t('{expirycheck:expwarning:no_access_to}', array('%NETID%' => htmlspecialchars($this->data['netId'])));?></p> + <p><?php echo $this->t('{expirycheck:expwarning:expiry_date_text}');?> <b><?php echo htmlspecialchars($this->data['expireOnDate']);?></b></p> + <p><?php echo $this->t('{expirycheck:expwarning:contact_home}');?></p> <?php $this->includeAtTemplateBase('includes/footer.php'); ?>