Browse Source

- Updated i18n po

- New way to count server population
pull/16/head
Jaussoin Timothée 13 years ago
parent
commit
34e2a91729
  1. 1810
      i18n/ar.po
  2. 1595
      i18n/be.po
  3. 1573
      i18n/br.po
  4. 1711
      i18n/da.po
  5. 2021
      i18n/de.po
  6. 1732
      i18n/el.po
  7. 1693
      i18n/eo.po
  8. 1872
      i18n/es.po
  9. 1813
      i18n/fi.po
  10. 2333
      i18n/fr.po
  11. 1594
      i18n/gl.po
  12. 2357
      i18n/he.po
  13. 1814
      i18n/it.po
  14. 1848
      i18n/ja.po
  15. 1568
      i18n/messages.pot
  16. 1643
      i18n/nl.po
  17. 1593
      i18n/no.po
  18. 1931
      i18n/oc.po
  19. 1816
      i18n/pt.po
  20. 1656
      i18n/ro.po
  21. 1860
      i18n/ru.po
  22. 1620
      i18n/uk.po
  23. 22
      i18n/update_trans.sh
  24. 1619
      i18n/zh.po
  25. 2
      system/Controller/ControllerMain.php
  26. 16
      system/Widget/widgets/Admin/Admin.php
  27. 6
      system/Widget/widgets/Log/Log.php
  28. 5
      system/Widget/widgets/Login/Login.php

1810
i18n/ar.po
File diff suppressed because it is too large
View File

1595
i18n/be.po
File diff suppressed because it is too large
View File

1573
i18n/br.po
File diff suppressed because it is too large
View File

1711
i18n/da.po
File diff suppressed because it is too large
View File

2021
i18n/de.po
File diff suppressed because it is too large
View File

1732
i18n/el.po
File diff suppressed because it is too large
View File

1693
i18n/eo.po
File diff suppressed because it is too large
View File

1872
i18n/es.po
File diff suppressed because it is too large
View File

1813
i18n/fi.po
File diff suppressed because it is too large
View File

2333
i18n/fr.po
File diff suppressed because it is too large
View File

1594
i18n/gl.po
File diff suppressed because it is too large
View File

2357
i18n/he.po
File diff suppressed because it is too large
View File

1814
i18n/it.po
File diff suppressed because it is too large
View File

1848
i18n/ja.po
File diff suppressed because it is too large
View File

1568
i18n/messages.pot
File diff suppressed because it is too large
View File

1643
i18n/nl.po
File diff suppressed because it is too large
View File

1593
i18n/no.po
File diff suppressed because it is too large
View File

1931
i18n/oc.po
File diff suppressed because it is too large
View File

1816
i18n/pt.po
File diff suppressed because it is too large
View File

1656
i18n/ro.po
File diff suppressed because it is too large
View File

1860
i18n/ru.po
File diff suppressed because it is too large
View File

1620
i18n/uk.po
File diff suppressed because it is too large
View File

22
i18n/update_trans.sh

@ -1,13 +1,19 @@
#!/bin/sh
touch files.list
ls ../*.php > files.list
ls ../admin/*.php >> files.list
ls ../system/*.php >> files.list
ls ../system/Moxl/*.php >> files.list
ls ../system/Moxl/*/*.php >> files.list
ls ../system/Moxl/*/*/*.php >> files.list
ls ../system/Moxl/*/*/*/*.php >> files.list
ls ../system/Controller/*.php >> files.list
ls ../system/Widget/widgets/*/*.php >> files.list
ls ../*/*.php > files.list
ls ../*/*/*.php > files.list
ls ../*/*/*/*.php > files.list
ls ../*/*/*/*/*.php > files.list
#ls ../admin/*.php >> files.list
#ls ../system/*.php >> files.list
#ls ../system/Moxl/*.php >> files.list
#ls ../system/Moxl/*/*.php >> files.list
#ls ../system/Moxl/*/*/*.php >> files.list
#ls ../system/Moxl/*/*/*/*.php >> files.list
#ls ../system/Controller/*.php >> files.list
#ls ../system/Widget/widgets/*/*.php >> files.list
xgettext -kt -o messages.pot -L PHP -f files.list

1619
i18n/zh.po
File diff suppressed because it is too large
View File

2
system/Controller/ControllerMain.php

@ -337,7 +337,7 @@ class ControllerMain extends ControllerBase
*/
function admin()
{
error_reporting(0);
//error_reporting(0);
if(!isset($_SERVER['PHP_AUTH_USER'])) {
$this->authenticate();

16
system/Widget/widgets/Admin/Admin.php

@ -46,15 +46,20 @@ class Admin extends WidgetBase {
* Create the dirs
*/
function createDirs(){
if(!test_dir(BASE_PATH.'cache') && !@mkdir(BASE_PATH.'cache')) {
if(!file_exists(BASE_PATH.'cache') && !@mkdir(BASE_PATH.'cache')) {
echo t("Couldn't create directory '%s'.", 'cache');
return false;
}
if(!test_dir(BASE_PATH.'log') && !@mkdir(BASE_PATH.'log')) {
if(!file_exists(BASE_PATH.'log') && !@mkdir(BASE_PATH.'log')) {
echo t("Couldn't create directory '%s'.", 'log');
return false;
}
if(!file_exists(BASE_PATH.'config') && !@mkdir(BASE_PATH.'config')) {
echo t("Couldn't create directory '%s'.", 'config');
return false;
}
}
private function listThemes()
@ -182,6 +187,9 @@ class Admin extends WidgetBase {
{
$submit = $this->genCallAjax('ajaxAdminSubmit', "movim_parse_form('admin')")
."this.className='button icon loading'; setTimeout(function() {location.reload(false)}, 2000);";
if($this->testDir(BASE_PATH))
$this->createDirs();
$html = '
<form name="admin" id="adminform">';
@ -227,10 +235,10 @@ class Admin extends WidgetBase {
</div>
<div class="'.$this->isValid($this->testDir(BASE_PATH)).'">
'.t('Read and write rights for the webserver in Movim\'s root directory').'
</div>
</div>';/*
<div class="'.$this->isValid($this->testDir(BASE_PATH.'config/')).'">
'.t('Read and write rights conf.xml file in config/ directory').'
</div>';
</div>';*/
$html .= '
</fieldset>';

6
system/Widget/widgets/Log/Log.php

@ -39,8 +39,10 @@ class Log extends WidgetBase
}
function onEvent($data)
{
{
RPC::call('movim_fill',
'log_content',
serialize($data));
}
}

5
system/Widget/widgets/Login/Login.php

@ -287,10 +287,9 @@ class Login extends WidgetBase {
<div id="warning"><?php echo $this->displayWarning($_GET['err'], true); ?></div>
<div class="infos">
<?php
$rd = new \modl\RosterLinkDAO();
$pop = $rd->countAccounts();
$pop = count(scandir(USERS_PATH))-3;
echo t('Population').' '.$pop[0].' • ';
echo t('Population').' '.$pop.' • ';
?>
<?php echo t('No account yet ?'); ?>
<a href="?q=account">

Loading…
Cancel
Save