Skip to content

Commit

Permalink
Fixes regex and optimizes ossdl-cdn.php (#596)
Browse files Browse the repository at this point in the history
* Fixes regexp and optimizes ossdl-cdn.php

* Fixes option - ossdl_off_cdn_url

* PHPCS fixes in ossdl-cdn.php

* CDN - improves filter and PHPCS/PHPMD fixes
  • Loading branch information
stodorovic authored and donnchawp committed Dec 7, 2018
1 parent 22383f0 commit f331629
Show file tree
Hide file tree
Showing 8 changed files with 195 additions and 103 deletions.
2 changes: 1 addition & 1 deletion languages/wp-super-cache-de_DE.po
Expand Up @@ -177,7 +177,7 @@ msgid "Additional CNAMES"
msgstr "Weitere CNAMES"

#: ossdl-cdn.php:184
msgid "These <a href=\"http://en.wikipedia.org/wiki/CNAME_record\">CNAMES</a> will be used in place of %1$s for rewriting (in addition to the off-site URL above). Use a comma as the delimiter. For pages with a large number of static files, this can improve browser performance. CNAMEs may also need to be configured on your CDN.<br />Example: %2$s"
msgid "These <a href=\"https://www.wikipedia.org/wiki/CNAME_record\">CNAMES</a> will be used in place of %1$s for rewriting (in addition to the off-site URL above). Use a comma as the delimiter. For pages with a large number of static files, this can improve browser performance. CNAMEs may also need to be configured on your CDN.<br />Example: %2$s"
msgstr "Diese <a href=\"http://de.wikipedia.org/wiki/CNAME\">CNAMES</a> werden anstatt der %1$s für Rewriting genutzt (als Ergänzung zu dem Off-Site URL weiter oben). Benutze ein Komma als Trennzeichen. Für Seiten mit einer großen Anzahl statischer Dateien kann sich dadurch die Leistung des Browsers verbessern. Es kann sein, das CNAMEs auch in deinem CDN konfiguriert werden müssen.<br />Als Beispiel: %2$s"

#: ossdl-cdn.php:188
Expand Down
4 changes: 2 additions & 2 deletions languages/wp-super-cache-ja.po
Expand Up @@ -172,8 +172,8 @@ msgid "Additional CNAMES"
msgstr "追加 CNAME"

#: ossdl-cdn.php:184
msgid "These <a href=\"http://en.wikipedia.org/wiki/CNAME_record\">CNAMES</a> will be used in place of %1$s for rewriting (in addition to the off-site URL above). Use a comma as the delimiter. For pages with a large number of static files, this can improve browser performance. CNAMEs may also need to be configured on your CDN.<br />Example: %2$s"
msgstr "上記 <a href=\"http://en.wikipedia.org/wiki/CNAME_record\">CNAME</a> は %1$s の代わりに (さらに上のオフサイト URL に加えて) rewriteで使用されます。複数の場合はコンマで区切ってください。静的ファイルが多数あるページの場合にブラウザーのパフォーマンスを改善できます。CNAME は CDN で設定する必要があるかもしれません。<br />例: %2$s"
msgid "These <a href=\"https://www.wikipedia.org/wiki/CNAME_record\">CNAMES</a> will be used in place of %1$s for rewriting (in addition to the off-site URL above). Use a comma as the delimiter. For pages with a large number of static files, this can improve browser performance. CNAMEs may also need to be configured on your CDN.<br />Example: %2$s"
msgstr "上記 <a href=\"https://www.wikipedia.org/wiki/CNAME_record\">CNAME</a> は %1$s の代わりに (さらに上のオフサイト URL に加えて) rewriteで使用されます。複数の場合はコンマで区切ってください。静的ファイルが多数あるページの場合にブラウザーのパフォーマンスを改善できます。CNAME は CDN で設定する必要があるかもしれません。<br />例: %2$s"

#: ossdl-cdn.php:188
msgid "Skip https URLs to avoid \"mixed content\" errors"
Expand Down
4 changes: 2 additions & 2 deletions languages/wp-super-cache-ru_RU.po
Expand Up @@ -67,8 +67,8 @@ msgid "Additional CNAMES"
msgstr "Дополнительные CNAME (канонические имена)"

#: ossdl-cdn.php:184
msgid "These <a href=\"http://en.wikipedia.org/wiki/CNAME_record\">CNAMES</a> will be used in place of %1$s for rewriting (in addition to the off-site URL above). Use a comma as the delimiter. For pages with a large number of static files, this can improve browser performance. CNAMEs may also need to be configured on your CDN.<br />Example: %2$s"
msgstr "Эти записи <a href=\"http://en.wikipedia.org/wiki/CNAME_record\">CNAME</a> будут использованы вместо %1$s (в дополнении к основному URL). Используйте запятую (,) для разделения записей. Для страниц с большим количеством статичных файлов данная опция может уменьшить время загрузки. Записи CNAME также могут быть использованы для конфигурации CDN.<br />Пример: %2$s"
msgid "These <a href=\"https://www.wikipedia.org/wiki/CNAME_record\">CNAMES</a> will be used in place of %1$s for rewriting (in addition to the off-site URL above). Use a comma as the delimiter. For pages with a large number of static files, this can improve browser performance. CNAMEs may also need to be configured on your CDN.<br />Example: %2$s"
msgstr "Эти записи <a href=\"https://www.wikipedia.org/wiki/CNAME_record\">CNAME</a> будут использованы вместо %1$s (в дополнении к основному URL). Используйте запятую (,) для разделения записей. Для страниц с большим количеством статичных файлов данная опция может уменьшить время загрузки. Записи CNAME также могут быть использованы для конфигурации CDN.<br />Пример: %2$s"

#: ossdl-cdn.php:188
msgid "Skip https URLs to avoid \"mixed content\" errors"
Expand Down
4 changes: 2 additions & 2 deletions languages/wp-super-cache-sr_RS.po
Expand Up @@ -116,13 +116,13 @@ msgstr "Dodatni CNAME zapisi"

#: ossdl-cdn.php:189
msgid ""
"These <a href=\"http://en.wikipedia.org/wiki/CNAME_record\">CNAMES</a> will "
"These <a href=\"https://www.wikipedia.org/wiki/CNAME_record\">CNAMES</a> will "
"be used in place of %1$s for rewriting (in addition to the off-site URL "
"above). Use a comma as the delimiter. For pages with a large number of "
"static files, this can improve browser performance. CNAMEs may also need to "
"be configured on your CDN.<br />Example: %2$s"
msgstr ""
"Ovi <a href=\"http://en.wikipedia.org/wiki/CNAME_record\">CNAME zapisi</a> "
"Ovi <a href=\"https://www.wikipedia.org/wiki/CNAME_record\">CNAME zapisi</a> "
"će se koristiti umesto %1$s, za ponovno upisivanje (uz gornji spoljašnji "
"URL). Koristite zapetu kao razdvajač. Za strane sa velikim brojem statičkih "
"fajlova, ovo može poboljšati performanse pregledača. Takođe, možda treba "
Expand Down
4 changes: 2 additions & 2 deletions languages/wp-super-cache-tr_TR.po
Expand Up @@ -63,8 +63,8 @@ msgid "Additional CNAMES"
msgstr "Ek CNAME'ler"

#: ossdl-cdn.php:171
msgid "These <a href=\"http://en.wikipedia.org/wiki/CNAME_record\">CNAMES</a> will be used in place of %1$s for rewriting (in addition to the off-site URL above). Use a comma as the delimiter. For pages with a large number of static files, this can improve browser performance. CNAMEs may also need to be configured on your CDN.<br />Example: %2$s"
msgstr "Bu <a href=\"http://en.wikipedia.org/wiki/CNAME_record\">CNAME'ler</a>, yeniden yazım için %1$s yerine kullanılacaktır (yukarıda belirlediğiniz site dışı adrese ek olarak). Virgülle ayırın. Fazlaca statik dosyaya sahip sayfalar için bu seçenek tarayıcı performansını artırabilir. CNAME'lerin bazen CDN hizmetiniz için de ayarlanması gerekebilir.<br />Example: %2$s"
msgid "These <a href=\"https://www.wikipedia.org/wiki/CNAME_record\">CNAMES</a> will be used in place of %1$s for rewriting (in addition to the off-site URL above). Use a comma as the delimiter. For pages with a large number of static files, this can improve browser performance. CNAMEs may also need to be configured on your CDN.<br />Example: %2$s"
msgstr "Bu <a href=\"https://www.wikipedia.org/wiki/CNAME_record\">CNAME'ler</a>, yeniden yazım için %1$s yerine kullanılacaktır (yukarıda belirlediğiniz site dışı adrese ek olarak). Virgülle ayırın. Fazlaca statik dosyaya sahip sayfalar için bu seçenek tarayıcı performansını artırabilir. CNAME'lerin bazen CDN hizmetiniz için de ayarlanması gerekebilir.<br />Example: %2$s"

#: ossdl-cdn.php:176
msgid "Save Changes"
Expand Down
2 changes: 1 addition & 1 deletion languages/wp-super-cache-zh_CN.po
Expand Up @@ -64,7 +64,7 @@ msgid "Additional CNAMES"
msgstr "附加 CNAME 记录"

#: ossdl-cdn.php:189
msgid "These <a href=\"http://en.wikipedia.org/wiki/CNAME_record\">CNAMES</a> will be used in place of %1$s for rewriting (in addition to the off-site URL above). Use a comma as the delimiter. For pages with a large number of static files, this can improve browser performance. CNAMEs may also need to be configured on your CDN.<br />Example: %2$s"
msgid "These <a href=\"https://www.wikipedia.org/wiki/CNAME_record\">CNAMES</a> will be used in place of %1$s for rewriting (in addition to the off-site URL above). Use a comma as the delimiter. For pages with a large number of static files, this can improve browser performance. CNAMEs may also need to be configured on your CDN.<br />Example: %2$s"
msgstr ""

#: ossdl-cdn.php:193
Expand Down
4 changes: 2 additions & 2 deletions languages/wp-super-cache-zh_TW.po
Expand Up @@ -63,8 +63,8 @@ msgid "Additional CNAMES"
msgstr "額外的正規名稱(CNAMES)"

#: ossdl-cdn.php:189
msgid "These <a href=\"http://en.wikipedia.org/wiki/CNAME_record\">CNAMES</a> will be used in place of %1$s for rewriting (in addition to the off-site URL above). Use a comma as the delimiter. For pages with a large number of static files, this can improve browser performance. CNAMEs may also need to be configured on your CDN.<br />Example: %2$s"
msgstr "這些 <a href=\"http://en.wikipedia.org/wiki/CNAME_record\">正規名稱記錄(CNAMES)</a> 會在重寫時用來取代 %1$s (和上面的站外URL一起)。 使用逗號作為分隔符號。 在有大量靜態檔案的網頁中,這可以增進瀏覽器效能。 這些正規名稱可能也需要在你的 CDN 被設定。<br />例: %2$s"
msgid "These <a href=\"https://www.wikipedia.org/wiki/CNAME_record\">CNAMES</a> will be used in place of %1$s for rewriting (in addition to the off-site URL above). Use a comma as the delimiter. For pages with a large number of static files, this can improve browser performance. CNAMEs may also need to be configured on your CDN.<br />Example: %2$s"
msgstr "這些 <a href=\"https://www.wikipedia.org/wiki/CNAME_record\">正規名稱記錄(CNAMES)</a> 會在重寫時用來取代 %1$s (和上面的站外URL一起)。 使用逗號作為分隔符號。 在有大量靜態檔案的網頁中,這可以增進瀏覽器效能。 這些正規名稱可能也需要在你的 CDN 被設定。<br />例: %2$s"

#: ossdl-cdn.php:193
msgid "Skip https URLs to avoid \"mixed content\" errors"
Expand Down

0 comments on commit f331629

Please sign in to comment.