فهرست منبع

style: clarify comments

rugk 8 ماه پیش
والد
کامیت
72d4c7aa2b
1فایلهای تغییر یافته به همراه2 افزوده شده و 3 حذف شده
  1. 2 3
      tst/I18nTest.php

+ 2 - 3
tst/I18nTest.php

@@ -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');