Jump to content

[gelöst] PS 8: Dezimaltrenner bei der Währung von Komma auf Punkt ändern


prestamax

Recommended Posts

Die Lösung des Problems war: die Währungsform auch noch in der Datei de_DE.xml in localization/CLDR/core/common/main zu ändern (ich habe einfach den gesamten Inhalt von de_CH in de_DE kopiert und dann war der Punkt da)


Hallo, weiss jemand wie man den Dezimaltrenner für die Schweiz von Komma auf Punkt ändern kann. In PS 1.785 hat es noch funktioniert, indem ich manuell das Währungsformat in de_CH.xml in localization/CLDR/core/common/main geändert hatte. In PS 8 scheint das trotz Löschen des Caches nicht zu funktionieren.

Kennt jemand das Problem und kann helfen? Vielen Dank im voraus!

P.S. Beim Bearbeiten der Währung selbst wird leider das Komma als Dezimaltrenner nicht angeboten, nur die Stellung des Währungssymbols.

Edited by prestamax (see edit history)
Link to comment
Share on other sites

  • prestamax changed the title to [gelöst] PS 8: Dezimaltrenner bei der Währung von Komma auf Punkt ändern
  • 2 months later...
On 8/5/2025 at 6:09 AM, Jerrod Mcpherson said:

Danke fürs Teilen der Lösung. Ein möglicher zusätzlicher Schritt wäre zu prüfen, ob in PS 8 eventuell eine neue Konfigurationsdatei oder ein anderer Pfad für die Lokalisierung genutzt wird. 

Der Pfad scheint in PS 8 der gleiche zu sein

Link to comment
Share on other sites

  • 4 months later...

PS 8.1.7: Mir ist es immer noch nicht klar was du geändert hast. Man kann da nirgendwo ein Komma oder einen Punkt einsetzen in der Datei. 

<currencies>
        <currency name="Franc" iso_code="CHF" iso_code_num="756" sign="CHF" blank="1" format="5" decimals="1" />
    </currencies>

das finde ich ch.xml

Link to comment
Share on other sites

Für die Sprache Deutsch ist normalerweise die Locale de-DE eingestellt. Dort (in der genannten Datei de-DE.xml) kann du den Währungstrenner und Format wie folgt ändern. Dies wirkt sich dann aber auch auf andere Währungen wie EUR aus falls die genutzt werden. 

 

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE ldml SYSTEM "../../common/dtd/ldml.dtd">
<!-- Copyright © 1991-2020 Unicode, Inc.
For terms of use, see http://www.unicode.org/copyright.html
Unicode and the Unicode Logo are registered trademarks of Unicode, Inc. in the U.S. and other countries.
CLDR data files are interpreted according to the LDML specification (http://unicode.org/reports/tr35/)
-->
<ldml>
	<identity>
		<version number="$Revision$"/>
		<language type="de"/>
		<territory type="DE"/>
	</identity>
	<currencyFormats numberSystem="latn">
		<currencyFormatLength>
			<currencyFormat type="standard">
				<pattern>¤ #,##0.00; (¤ -#,##0.00)</pattern>
			</currencyFormat>
		</currencyFormatLength>
	</currencyFormats>
	<numbers>
		<symbols numberSystem="latn">
			<decimal>.</decimal>
			<group></group>
		</symbols>
	</numbers>
</ldml>

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...