aboutsummaryrefslogtreecommitdiffstats
path: root/langs/lib.php
diff options
context:
space:
mode:
authorfilip <filip.komar@gmail.com>2021-03-19 13:52:40 +0100
committerfilip <filip.komar@gmail.com>2021-03-19 13:52:40 +0100
commite1244544c68141b24d5409aee36ea74e3f08fa8f (patch)
treee034ae60715fec3769947a2a884903313be5486a /langs/lib.php
parentf297bee43ca82d7e00ae1598e8d2c04234ae9d19 (diff)
downloadwww-e1244544c68141b24d5409aee36ea74e3f08fa8f.tar
www-e1244544c68141b24d5409aee36ea74e3f08fa8f.tar.gz
www-e1244544c68141b24d5409aee36ea74e3f08fa8f.tar.bz2
www-e1244544c68141b24d5409aee36ea74e3f08fa8f.tar.xz
www-e1244544c68141b24d5409aee36ea74e3f08fa8f.zip
add testing for new resources & adding 10 of them + some bugfixes
- GitHub resources are now also supported
Diffstat (limited to 'langs/lib.php')
-rw-r--r--langs/lib.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/langs/lib.php b/langs/lib.php
index a5c408038..ca5ff48cc 100644
--- a/langs/lib.php
+++ b/langs/lib.php
@@ -623,9 +623,9 @@ function tx_call($tx_request, $project = 'project/mageia/')
function resource_name_conversion($resource_name, $category = '')
{
if ('Webpages' == $category) {
- $tx_names = array('nav', '-');
- $git_names = array('_nav/langs/en', '/');
- $resource_name = 'page-' . str_replace($git_names, $tx_names, $resource_name);
+ $tx_names = array('page-nav', 'page-', '-', '');
+ $git_names = array('../_nav/langs/en.pot', 'en/', '/', '.pot');
+ $resource_name = str_replace($git_names, $tx_names, $resource_name);
} else if ('Cauldron' == $category) {
$tx_names = array('mageia-welcome', 'identity-catdap');
$git_names = array('Mageia%20Welcome', 'Identity%20(CatDap)');