mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-07-17 16:39:40 +00:00
style: clarify comments
This commit is contained in:
parent
e676264616
commit
72d4c7aa2b
1 changed files with 2 additions and 3 deletions
|
|
@ -191,9 +191,8 @@ class I18nTest extends TestCase
|
|||
{
|
||||
$_SERVER['HTTP_ACCEPT_LANGUAGE'] = 'fr';
|
||||
I18n::loadTranslations();
|
||||
// The French translation should not have the apostrophe encoded
|
||||
// Original: "Le document n'existe pas, a expiré, ou a été supprimé."
|
||||
// Should NOT become: "Le document n'existe pas, a expiré, ou a été supprimé."
|
||||
// For example, the French translation should not have the apostrophe encoded
|
||||
// See https://github.com/PrivateBin/PrivateBin/issues/1712
|
||||
$message = I18n::_('Document does not exist, has expired or has been deleted.');
|
||||
$this->assertFalse(strpos($message, ''') !== false, 'French apostrophe should not be encoded in translation message');
|
||||
$this->assertTrue(strpos($message, "n'existe") !== false, 'French apostrophe should be present as literal character');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue