Skip to content

Commit

Permalink
Merge pull request #546 from dasgarner/release18
Browse files Browse the repository at this point in the history
Release 1.8.13
  • Loading branch information
dasgarner authored Apr 23, 2019
2 parents b0a07dd + c14c71a commit 0a02e70
Show file tree
Hide file tree
Showing 48 changed files with 9,471 additions and 5,015 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,19 @@ docker exec -it xibo-cms-tempel_web_1 /var/www/cms/bin/locale.php
find ./locale ./cache ./lib ./web -iname "*.php" -print0 | xargs -0 xgettext --from-code=UTF-8 -k_e -k_x -k__ -o locale/default.pot
```

To import translations:

```bash
bzr pull lp:~dangarner/xibo/tempel-translations
```

Convert to `mo` format:

```bash
for i in *.po; do msgfmt "$i" -o $(echo $i | sed s/po/mo/); done
```

Move the resulting `mo` files into your `locale` folder.

# Application Structure

Expand Down
18 changes: 18 additions & 0 deletions lib/Xmds/Soap4.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
namespace Xibo\Xmds;

use Intervention\Image\ImageManagerStatic as Img;
use Jenssegers\Date\Date;
use Xibo\Entity\Bandwidth;
use Xibo\Entity\Display;
use Xibo\Exception\NotFoundException;
Expand Down Expand Up @@ -110,6 +111,23 @@ public function RegisterDisplay($serverKey, $hardwareKey, $displayName, $clientT
// Create the XML nodes
foreach ($settings as $arrayItem) {

// Patch download and update windows to make sure they are unix time stamps
// XMDS schema 4 sent down unix time
// https://github.com/xibosignage/xibo/issues/1791
if (strtolower($arrayItem['name']) == 'downloadstartwindow'
|| strtolower($arrayItem['name']) == 'downloadendwindow'
|| strtolower($arrayItem['name']) == 'updatestartwindow'
|| strtolower($arrayItem['name']) == 'updateendwindow'
) {
// Split by :
$timeParts = explode(':', $arrayItem['value']);
if ($timeParts[0] == '00' && $timeParts[1] == '00') {
$arrayItem['value'] = 0;
} else {
$arrayItem['value'] = Date::now()->setTime(intval($timeParts[0]), intval($timeParts[1]));
}
}

$node = $return->createElement($arrayItem['name'], (isset($arrayItem['value']) ? $arrayItem['value'] : $arrayItem['default']));
$node->setAttribute('type', $arrayItem['type']);
$displayElement->appendChild($node);
Expand Down
12 changes: 12 additions & 0 deletions lib/Xmds/Soap5.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,18 @@ public function RegisterDisplay($serverKey, $hardwareKey, $displayName, $clientT
$arrayItem['value'] = $this->getConfig()->GetSetting('XMR_PUB_ADDRESS');
}

// Patch download and update windows to make sure they are only 00:00
// https://github.com/xibosignage/xibo/issues/1791
if (strtolower($arrayItem['name']) == 'downloadstartwindow'
|| strtolower($arrayItem['name']) == 'downloadendwindow'
|| strtolower($arrayItem['name']) == 'updatestartwindow'
|| strtolower($arrayItem['name']) == 'updateendwindow'
) {
// Split by :
$timeParts = explode(':', $arrayItem['value']);
$arrayItem['value'] = $timeParts[0] . ':' . $timeParts[1];
}

$node = $return->createElement($arrayItem['name'], (isset($arrayItem['value']) ? $arrayItem['value'] : $arrayItem['default']));
$node->setAttribute('type', $arrayItem['type']);
$displayElement->appendChild($node);
Expand Down
8 changes: 7 additions & 1 deletion locale/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,10 @@ Translations can be done using the Launchpad Web User Interface.
3. Download and Install [PoEdit](http://poedit.net/)
4. Open the PO file you downloaded in POEdit
5. Make the translations
6. Upload the file to Launchpad (making sure you are on the same language translation page)
6. Upload the file to Launchpad (making sure you are on the same language translation page)

Alternatively get the PO files from the translation export branch:

```bash
bzr pull lp:~dangarner/xibo/tempel-translations
```
Binary file modified locale/af.mo
Binary file not shown.
Binary file modified locale/ar.mo
Binary file not shown.
Binary file modified locale/bg.mo
Binary file not shown.
Binary file modified locale/ca.mo
Binary file not shown.
Binary file modified locale/cs.mo
Binary file not shown.
Binary file modified locale/da.mo
Binary file not shown.
Binary file modified locale/de.mo
Binary file not shown.
14,435 changes: 9,421 additions & 5,014 deletions locale/default.pot

Large diffs are not rendered by default.

Binary file modified locale/el.mo
Binary file not shown.
Binary file modified locale/en_GB.mo
Binary file not shown.
Binary file modified locale/es.mo
Binary file not shown.
Binary file modified locale/et.mo
Binary file not shown.
Binary file modified locale/eu.mo
Binary file not shown.
Binary file modified locale/fa.mo
Binary file not shown.
Binary file modified locale/fi.mo
Binary file not shown.
Binary file modified locale/fr.mo
Binary file not shown.
Binary file modified locale/he.mo
Binary file not shown.
Binary file modified locale/hi.mo
Binary file not shown.
Binary file modified locale/hr.mo
Binary file not shown.
Binary file modified locale/hu.mo
Binary file not shown.
Binary file modified locale/id.mo
Binary file not shown.
Binary file modified locale/it.mo
Binary file not shown.
Binary file modified locale/ja.mo
Binary file not shown.
Binary file modified locale/ko.mo
Binary file not shown.
Binary file modified locale/ku.mo
Binary file not shown.
Binary file modified locale/lb.mo
Binary file not shown.
Binary file modified locale/lo.mo
Binary file not shown.
Binary file modified locale/lt.mo
Binary file not shown.
Binary file modified locale/nb.mo
Binary file not shown.
Binary file modified locale/nl.mo
Binary file not shown.
Binary file modified locale/nl_NL.mo
Binary file not shown.
Binary file modified locale/pl.mo
Binary file not shown.
Binary file modified locale/pt.mo
Binary file not shown.
Binary file modified locale/pt_BR.mo
Binary file not shown.
Binary file modified locale/ro.mo
Binary file not shown.
Binary file modified locale/ru.mo
Binary file not shown.
Binary file modified locale/sk.mo
Binary file not shown.
Binary file modified locale/sl.mo
Binary file not shown.
Binary file modified locale/sv.mo
Binary file not shown.
Binary file modified locale/th.mo
Binary file not shown.
Binary file modified locale/tr.mo
Binary file not shown.
Binary file modified locale/vi.mo
Binary file not shown.
Binary file modified locale/zh_CN.mo
Binary file not shown.
Binary file modified locale/zh_TW.mo
Binary file not shown.

0 comments on commit 0a02e70

Please sign in to comment.