aboutsummaryrefslogtreecommitdiffstats
path: root/langs/report_tx_git.php
diff options
context:
space:
mode:
authorfilip <filip.komar@gmail.com>2016-07-09 18:59:12 +0200
committerfilip <filip.komar@gmail.com>2016-07-09 18:59:12 +0200
commitf1eff80c21606407f8162ed11b1e91696517e3df (patch)
treedc9e786fbc2d7ad38be88f6adba337c9bd29cd6e /langs/report_tx_git.php
parent9e3639e935810de4a8c7243839491a505c3d247b (diff)
downloadwww-f1eff80c21606407f8162ed11b1e91696517e3df.tar
www-f1eff80c21606407f8162ed11b1e91696517e3df.tar.gz
www-f1eff80c21606407f8162ed11b1e91696517e3df.tar.bz2
www-f1eff80c21606407f8162ed11b1e91696517e3df.tar.xz
www-f1eff80c21606407f8162ed11b1e91696517e3df.zip
Transifex cripled direct link access in a new version...
...in a way that limiting the result by the category or resource name unfortunatelly is no longer possible I leaved the old code inside in a hope that in the future we'll get that functionality back so adaptation will be easy.
Diffstat (limited to 'langs/report_tx_git.php')
-rw-r--r--langs/report_tx_git.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/langs/report_tx_git.php b/langs/report_tx_git.php
index 2fde17b44..e6ff57d44 100644
--- a/langs/report_tx_git.php
+++ b/langs/report_tx_git.php
@@ -340,14 +340,18 @@ function build_links($git_resource_name, $language_code, $resource_type, $stat_d
*/
function build_transifex_link($tx_language_code, $link_name = NULL, $tx_category = NULL, $tx_resource_name = NULL)
{
- $prefix = "<a href=\"http://www.transifex.com/organization/MageiaLinux/dashboard/all_resources";
- $transifex_url = "$prefix/$tx_language_code/#1/?";
- if(!is_null($tx_resource_name)) {
+// Transifex cripled direct link access in a new version in a way that limiting
+// the result by the category or resource name is no longer possible
+// $prefix = "<a href=\"http://www.transifex.com/organization/MageiaLinux/dashboard/all_resources";
+ $prefix = "<a href=\"https://www.transifex.com/MageiaLinux/mageia/language/";
+// $transifex_url = "$prefix/$tx_language_code/#1/?";
+ $transifex_url = "$prefix/$tx_language_code/";
+/* if(!is_null($tx_resource_name)) {
$transifex_url .= "s=$tx_resource_name&amp;";
}
if(!is_null($tx_category)) {
$transifex_url .= "c=$tx_category";
- }
+ }/**/
$transifex_url .= "\">";
if(is_null($link_name)) {
$transifex_url .= $tx_language_code;