Translation: improve French translation + add shell script to extract strings

git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@13 b3834d28-1941-0410-a4f8-b48e95affb8f
This commit is contained in:
mensonge 2008-01-14 10:59:29 +00:00
parent 3265b34919
commit a9232ac70a
7 changed files with 914 additions and 600 deletions

View file

@ -75,7 +75,7 @@ if (!($row = $bookmarkservice->getBookmark(intval($bookmark), true))) {
} }
exit(); exit();
} else { } else {
$tplVars['error'] = T_('Failed to delete the bookmark'); $tplVars['error'] = T_('Failed to delete bookmark');
$templateservice->loadTemplate('error.500.tpl', $tplVars); $templateservice->loadTemplate('error.500.tpl', $tplVars);
exit(); exit();
} }

View file

@ -17,4 +17,4 @@ if exist "..\..\..\locales\%1.po.bak" del ..\..\..\locales\%1.po.bak
msgfmt --statistics "..\..\..\locales\%1.po" msgfmt --statistics "..\..\..\locales\%1.po"
:end :end
echo Finished echo Finished

View file

@ -0,0 +1,12 @@
#!/bin/sh
xgettext -kT_ngettext:1,2 -kT_ -L PHP -o ../../../locales/messages.po ../../../*.php ../../../services/*.php ../../../templates/*.php
if [ -f "../../../locales/$1/LC_MESSAGES/messages.po" ]
then
msgmerge -o ../../../locales/$1/LC_MESSAGES/messages.po ../../../locales/$1/LC_MESSAGES/messages.po ../../../locales/messages.po
msgfmt --statistics "../../../locales/$1/LC_MESSAGES/messages.po" -o "../../../locales/$1/LC_MESSAGES/messages.mo"
else
echo "gettexts.sh LANGUAGE_CODE"
echo "example: 'gettexts fr_FR' to get text for French"
fi

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -4,7 +4,7 @@ $this->includeTemplate($GLOBALS['top_include']);
<form action="<?= $formaction ?>" method="post"> <form action="<?= $formaction ?>" method="post">
<input type="hidden" name="tag" value="<?php echo $tag ?>" /> <input type="hidden" name="tag" value="<?php echo $tag ?>" />
<p><?php echo T_('Create new link :')?></p> <p><?php echo T_('Create new link:')?></p>
<p><?php echo $tag ?> > <input type="text" name="newTag" /></p> <p><?php echo $tag ?> > <input type="text" name="newTag" /></p>
<!--p><?php echo T_('Are you sure?'); ?></p--> <!--p><?php echo T_('Are you sure?'); ?></p-->
<p> <p>