aboutsummaryrefslogtreecommitdiffstats
path: root/langs
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2012-08-03 15:15:45 +0000
committerRomain d'Alverny <rda@mageia.org>2012-08-03 15:15:45 +0000
commit934f625d25250c9529985f6fb610e5c14201af24 (patch)
tree1a98fbbdaddc7551bacf2cbe093304b522ead31a /langs
parent2179fad2a0a38c9bb5fd4b818af52009db6eb523 (diff)
downloadwww-934f625d25250c9529985f6fb610e5c14201af24.tar
www-934f625d25250c9529985f6fb610e5c14201af24.tar.gz
www-934f625d25250c9529985f6fb610e5c14201af24.tar.bz2
www-934f625d25250c9529985f6fb610e5c14201af24.tar.xz
www-934f625d25250c9529985f6fb610e5c14201af24.zip
code layout
Diffstat (limited to 'langs')
-rw-r--r--langs/report.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/langs/report.php b/langs/report.php
index 204b8e029..3c6a7fa41 100644
--- a/langs/report.php
+++ b/langs/report.php
@@ -121,15 +121,16 @@
$stats[$l]['strings'] += $done;
} else {
- $stats[$l]['files'] += 0;
+ $stats[$l]['files'] += 0;
$stats[$l]['strings'] += 0;
- $old_link = str_replace(array('en/', '.en.lang', 'index'), '', $f);
- $lang_filename = './../' . $l . '/';
+ $old_link = str_replace(array('en/', '.en.lang', 'index'), '', $f);
+ $lang_filename = './../' . $l . '/';
$complete_filename = $lang_filename . $old_link . '/';
- $lang_file_path = realpath($lang_filename);
+ $lang_file_path = realpath($lang_filename);
+
// if symlink e.g. does directly translated page exist?
- if(realpath($complete_filename) != realpath($lang_file_path) . '/' . $old_link) {
+ if (realpath($complete_filename) != realpath($lang_file_path) . '/' . $old_link) {
$old_link = '';
} else {
$old_link = sprintf(', you can use <a href="/%s/%s">old page</a> as a guide', $l, $old_link);