mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-03-05 13:30:32 -05:00
style: clarify comments
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user