Hello Community,
while working on CMSimple_XH 1.6 I have removed the "utf-8 markers" from the files of the core and the standard plugins, but now I noticed, that there are still some occurrences left. I suggest to remove them for XH 1.7.
These "utf8-markers" have been introduced with the switch to UTF-8 in CMSimple_XH 1.2. They have been supposed to be helpful when editing the PHP source files (especially config.php and the language files), because they can help editors to automatically determine the encoding of the files, so when the file is saved again it stays encoded in UTF-8 without BOM. That is somewhat useful, but IMO it is much better to educate users instead of relying on fragile solutions.
Christoph
XH 1.7: Remove remaining "utf-8 markers"
XH 1.7: Remove remaining "utf-8 markers"
Christoph M. Becker – Plugins for CMSimple_XH
Re: XH 1.7: Remove remaining "utf-8 markers"
I like to suggest this patch:
Note that there are more utf8-markers in some of the external standard plugins. These may or not may be removed by the respective developers, independently of the result of this vote.
Code: Select all
Index: cmsimple/languages/de.php
===================================================================
--- cmsimple/languages/de.php (revision 1489)
+++ cmsimple/languages/de.php (working copy)
@@ -316,6 +316,4 @@
$tx['validate']['mailto']="MAILTO VERLINKUNG";
$tx['validate']['notxt']="KEIN TEXT IN VERLINKUNG";
-$tx['utf-8']['marker']="äöü";
-
?>
Index: cmsimple/languages/en.php
===================================================================
--- cmsimple/languages/en.php (revision 1489)
+++ cmsimple/languages/en.php (working copy)
@@ -315,6 +315,4 @@
$tx['validate']['mailto']="MAILTO LINK";
$tx['validate']['notxt']="NO TEXT IN LINK";
-$tx['utf-8']['marker']="äöü";
-
?>
Index: plugins/filebrowser/languages/de.php
===================================================================
--- plugins/filebrowser/languages/de.php (revision 1489)
+++ plugins/filebrowser/languages/de.php (working copy)
@@ -38,8 +38,6 @@
$plugin_tx['filebrowser']['folder'] = "Ordner";
$plugin_tx['filebrowser']['files'] = "Dateien:";
-$plugin_tx['filebrowser']['utf-8-marker']="äöü";
-
$plugin_tx['filebrowser']['cf_extensions_images']="Listen Sie die im Bilder-Ordner erlaubten Dateiendungen - voneinander durch Kommas getrennt - auf. <b>*</b> dient als Platzhalter für alle Dateiendungen";
$plugin_tx['filebrowser']['cf_extensions_downloads']="Listen Sie die im Downloads-Ordner erlaubten Dateiendungen - voneinander durch Kommas getrennt - auf. <b>*</b> dient als Platzhalter für alle Dateiendungen";
$plugin_tx['filebrowser']['cf_extensions_userfiles']="Listen Sie die im Anwenderdateien-Ordner erlaubten Dateiendungen - voneinander durch Kommas getrennt - auf. <b>*</b> dient als Platzhalter für alle Dateiendungen";
Index: plugins/filebrowser/languages/en.php
===================================================================
--- plugins/filebrowser/languages/en.php (revision 1489)
+++ plugins/filebrowser/languages/en.php (working copy)
@@ -38,8 +38,6 @@
$plugin_tx['filebrowser']['folder'] = "Folder";
$plugin_tx['filebrowser']['files'] = "Files:";
-$plugin_tx['filebrowser']['utf-8-marker']="äöü";
-
$plugin_tx['filebrowser']['cf_extensions_images']="Fill in the file extensions you want to allow for the images folder as comma separated list. <b>*</b> is a wildcard for all file extensions.";
$plugin_tx['filebrowser']['cf_extensions_downloads']="Fill in the file extensions you want to allow for the downloads folder as comma separated list. <b>*</b> is a wildcard for all file extensions.";
$plugin_tx['filebrowser']['cf_extensions_userfiles']="Fill in the file extensions you want to allow for the userfiles folder as comma separated list. <b>*</b> is a wildcard for all file extensions.";
Index: plugins/meta_tags/languages/de.php
===================================================================
--- plugins/meta_tags/languages/de.php (revision 1489)
+++ plugins/meta_tags/languages/de.php (working copy)
@@ -11,6 +11,5 @@
$plugin_tx['meta_tags']['hint_keywords'] = "<p>Geben Sie hier die für den Seiteninhalt wichtigsten Begriffe, getrennt durch Kommata, ein.</p>";
$plugin_tx['meta_tags']['hint_robots'] = "<p><b>index, follow</b> » Ihre Seite wird von Suchmaschinen indiziert.</p><p><b>noindex, nofollow</b> » Ihre Seite wird von Suchmaschinen <b>NICHT</b> indiziert.</p>";
$plugin_tx['meta_tags']['submit'] = "speichern";
-$plugin_tx['meta_tags']['utf-8_marker']="äöü";
?>
\ No newline at end of file
Index: plugins/meta_tags/languages/en.php
===================================================================
--- plugins/meta_tags/languages/en.php (revision 1489)
+++ plugins/meta_tags/languages/en.php (working copy)
@@ -11,6 +11,5 @@
$plugin_tx['meta_tags']['hint_keywords'] = "<p>A list of the most important topics of this article, separated by commas.</p>";
$plugin_tx['meta_tags']['hint_robots'] = "<p><b>index, follow</b> » Searchengines are allowed to index this page.</p><p><b>noindex, nofollow</b> » Searchengines are <b>NOT</b> allowed to index this page.</p>";
$plugin_tx['meta_tags']['submit'] = "submit";
-$plugin_tx['meta_tags']['utf-8_marker']="äöü";
?>
\ No newline at end of file
Index: plugins/page_params/languages/de.php
===================================================================
--- plugins/page_params/languages/de.php (revision 1489)
+++ plugins/page_params/languages/de.php (working copy)
@@ -27,6 +27,5 @@
$plugin_tx['page_params']['hint_last_edit']="<p>Sie können das Datum der letzten Bearbeitung anzeigen lassen.</p><p>Das Datumsformat legen Sie über die CMSimple-Spracheinstellungen fest, das sonstige Erscheinungsbild per CSS (#pp_last_update).</p>";
$plugin_tx['page_params']['hint_template']="<p>Hier können Sie für diese Seite ein vom Standard abweichendes Template auswählen. Dieses Template gilt automatisch auch für Unterseiten dieser Seite.</p>";
$plugin_tx['page_params']['hint_header_location']="<p>Hier kann die Seite auf ein internes oder externes Ziel weitergeleitet werden.</p><p>Externe Ziele mit Protokoll eintragen, z.B. http://...</p>";
-$plugin_tx['page_params']['utf-8_marker']="äöü";
?>
Index: plugins/page_params/languages/en.php
===================================================================
--- plugins/page_params/languages/en.php (revision 1489)
+++ plugins/page_params/languages/en.php (working copy)
@@ -27,6 +27,5 @@
$plugin_tx['page_params']['hint_last_edit']="<p>Choose \"top\" or \"bottom\" to display the date of the last edit of this very page above resp. below the content. The Date format can be changed in the language settings, the look can be styled with the CSS selector <em>#pp_last_update</em>.</p>";
$plugin_tx['page_params']['hint_template']="<p>Here you can select a special template for this page. All subpages of the page will also have this template.</p>";
$plugin_tx['page_params']['hint_header_location']="<p>Here you can redirect this page to another internal or external page.</p><p>External targets have to be noted including the protocol (e.g. http://)</p>";
-$plugin_tx['page_params']['utf-8_marker']="äöüß";
?>
Christoph M. Becker – Plugins for CMSimple_XH
Re: XH 1.7: Remove remaining "utf-8 markers"
Done (r1520).
Christoph M. Becker – Plugins for CMSimple_XH
Re: XH 1.7: Remove remaining "utf-8 markers"
Apparently, I've missed several "utf8-markers". I've removed them in r1597.
Christoph M. Becker – Plugins for CMSimple_XH