Skip to content

Commit

Permalink
[jan] Make horde-translation work with released versions again.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Oct 24, 2021
1 parent 143b128 commit 91eb1c3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
14 changes: 8 additions & 6 deletions bin/horde-translation
Expand Up @@ -404,12 +404,14 @@ class Horde_Translation_Script
if (is_array($file)) {
return array_map(array($this, 'strip_horde'), $file);
}
$info = Horde_Yaml::loadFile($file . '/.horde.yml');
switch ($info['type']) {
case 'application':
return $info['id'];
case 'library':
return 'Horde_' . $info['id'];
if (file_exists($file . '/.horde.yml')) {
$info = Horde_Yaml::loadFile($file . '/.horde.yml');
switch ($info['type']) {
case 'application':
return $info['id'];
case 'library':
return 'Horde_' . $info['id'];
}
}
return basename($file);
}
Expand Down
5 changes: 3 additions & 2 deletions docs/changelog.yml
Expand Up @@ -39,8 +39,9 @@
license:
identifier: LGPL-2
uri: http://www.horde.org/licenses/lgpl
notes: |+
notes: |
[jan] Make horde-translation work with released versions again.
|+
5.2.23:
api: 5.2.0
state:
Expand Down

0 comments on commit 91eb1c3

Please sign in to comment.