Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Hungarian currency #8029

Closed
anon569 opened this issue Sep 27, 2018 · 14 comments
Closed

Add Hungarian currency #8029

anon569 opened this issue Sep 27, 2018 · 14 comments
Assignees
Labels
feature Add something new to the game.

Comments

@anon569
Copy link
Contributor

anon569 commented Sep 27, 2018

Hungarian forint (Ft)

@AaronVanGeffen
Copy link
Member

You can add an extra currency using the 'Custom currency' function, at the bottom of the currency dropdown.

@Gymnasiast
Copy link
Member

Gymnasiast commented Sep 27, 2018

I already spoke to him on Discord. Considering the effort that goes into the translation, I said I would be willing to add Forint as a built-in currency.

@Gymnasiast Gymnasiast added the feature Add something new to the game. label Sep 27, 2018
@Broxzier
Copy link
Member

Aren't amounts of currency in Hungarian more commonly referred to as HUF instead of Ft?

@anon569
Copy link
Contributor Author

anon569 commented Sep 27, 2018

Aren't amounts of currency in Hungarian more commonly referred to as HUF instead of Ft?

Only among non-Hungarians. HUF is the international currency code, Ft is the equivalent of £ or $.

@Gymnasiast Gymnasiast self-assigned this Oct 17, 2018
@killersprout
Copy link

killersprout commented Mar 31, 2019

My group and I are wanting to implement this feature, just to make sure there is no PR for this yet?
Edit: we know how to add HUF to the program, however that would require us to add the string id for it in every language packet in their languages respectively. Should we add it to all of them in their languages respectively, or just english in all of them? We could use google translate to change that one word.

@killersprout
Copy link

Also, in Currency.cpp on line 19,

currency_descriptor CurrencyDescriptors[CURRENCY_END] = {
    {   "GBP",  10,     CURRENCY_PREFIX,    "\xC2\xA3",     CURRENCY_SUFFIX,    "GBP",  STR_POUNDS          },  // British Pound
    {   "USD",  10,     CURRENCY_PREFIX,    "$",            CURRENCY_PREFIX,    "$",    STR_DOLLARS         },  // US Dollar
    {   "FRF",  10,     CURRENCY_SUFFIX,    "F",            CURRENCY_SUFFIX,    "F",    STR_FRANC           },  // French Franc
    {   "DEM",  10,     CURRENCY_PREFIX,    "DM",           CURRENCY_PREFIX,    "DM",   STR_DEUTSCHE_MARK   },  // Deutsche Mark
    {   "JPY",  1000,   CURRENCY_PREFIX,    "\xC2\xA5",     CURRENCY_SUFFIX,    "YEN",  STR_YEN             },  // Japanese Yen

I know what the first section is, which in our case would be "HUF", however I don't understand what the next section would be such as for the US dollar is 10, however the Japanese yen is 1000. And may someone explain what the "\xC2\xA5" is? is it for formatting everything?

@IntelOrca
Copy link
Contributor

Because YEN has no equivalent to pence or cent etc. it needs to be scaled. You can think of it as an exchange rate which is rounded to the nearest 10/100.

The \xC2\xA5 are code points to represent the full unicode character in UTF-8. It isn't necessary anymore as we can write UTF-8 strings directly in the source code by using the u8 string literal prefix.

@hokasha2016
Copy link
Contributor

@IntelOrca i will do this feature today and make a pull request as soon as possible. Since i will add it to the string ids, would you like me to add them into each language.txt file as well as in their respective languages?

@IntelOrca
Copy link
Contributor

Only touch en-GB.txt, all the other languages are edited in our separate localisation repository.

@hokasha2016
Copy link
Contributor

Ok, will do that

@hokasha2016
Copy link
Contributor

I found 2 variations of en-GB.txt. One in G9\data\language and one in G9\bin\data\language. Which one should I alter? or just both?

@duncanspumpkin
Copy link
Contributor

Bin/data isn't part of the repo that's created as part of the build steps.

@hokasha2016
Copy link
Contributor

so just data\language. will make a pull request now.

AaronVanGeffen added a commit that referenced this issue Jul 10, 2019
- Feature: [#485] Rides can now be simulated with ghost trains during construction.
- Feature: [#1260] Option for making giant screenshots have a transparent background.
- Feature: [#2339] Find local servers automatically when fetching servers.
- Feature: [#7296] Allow assigning a keyboard shortcut for the scenery picker.
- Feature: [#8029] Add the Hungarian Forint (HUF) to the list of available currencies.
- Feature: [#8481] Multi-threaded rendering.
- Feature: [#8558] Guest debugging tab.
- Feature: [#8659] Banner and sign texts are now shown in tooltips.
- Feature: [#8687] New multiplayer toolbar icon showing network status with reconnect option.
- Feature: [#8791] Improved tile element flag manipulation in Tile Inspector.
- Feature: [#8919] Allow setting ride price from console.
- Feature: [#8963] Add missing Czech letters to sprite font, use sprite font for Czech.
- Feature: [#9154] Change map toolbar icon with current viewport rotation.
- Change: [#7877] Files are now sorted in logical rather than dictionary order.
- Change: [#8427] Ghost elements now show up as white on the mini-map.
- Change: [#8688] Move common actions from debug menu into cheats menu.
- Change: [#9428] Increase maximum height of the Hypercoaster to RCT1 limits.
- Fix: [#2294] Clients crashing the server with invalid object selection.
- Fix: [#4568, #5896] Incorrect fences removed when building a tracked ride through
- Fix: [#5103] OpenGL: ride track preview not rendered.
- Fix: [#5889] Giant screenshot does not work while using OpenGL renderer.
- Fix: [#5579] Network desync immediately after connecting.
- Fix: [#5893] Looking at guest window tabs other than the main tab eventually causes assertion.
- Fix: [#5905] Urban Park merry-go-round has entrance and exit swapped (original bug).
- Fix: [#6006] Objects higher than 6 metres are considered trees (original bug).
- Fix: [#7039] Map window not rendering properly when using OpenGL.
- Fix: [#7045] Theme window's colour pickers not drawn properly on OpenGL.
- Fix: [#7323] Tunnel entrances not rendering in 'highlight path issues' mode if they have benches inside.
- Fix: [#7729] Money Input Prompt breaks on certain values.
- Fix: [#7884] Unfinished preserved rides can be demolished with quick demolish.
- Fix: [#7913] RCT1/RCT2 title sequence timing is off.
- Fix: [#7700, #8079, #8969] Crash when unloading buggy custom rides.
- Fix: [#7829] Rotated information kiosk can cause 'unreachable' messages.
- Fix: [#7878] Scroll shortcut keys ignore SHIFT/CTRL/ALT modifiers.
- Fix: [#8219] Faulty folder recreation in "save" folder.
- Fix: [#8480, #8535] Crash when mirroring track design.
- Fix: [#8507] Incorrect change in vehicle rolling direction.
- Fix: [#8537] Imported RCT1 rides/shops are all numbered 1.
- Fix: [#8553] Scenery removal tool removes fences and paths while paused.
- Fix: [#8598] Taking screenshots fails with some park names.
- Fix: [#8602] Wall piece collision detection deviates from vanilla
- Fix: [#8649] Setting date does not work in multiplayer.
- Fix: [#8873] Potential crash when placing footpaths.
- Fix: [#8882] Submarine Ride does not count as indoors (original bug).
- Fix: [#8900] Peep tracking is not synchronized.
- Fix: [#8909] Potential crash when invoking game actions as server.
- Fix: [#8947] Detection of AVX2 support.
- Fix: [#8988] Character sprite lookup noticeably slows down drawing.
- Fix: [#9000] Show correct error message if not enough money available.
- Fix: [#9067] Land/water tools show prices when money is disabled.
- Fix: [#9124] Disconnected clients can crash the server.
- Fix: [#9132] System file browser cannot open SV4 files.
- Fix: [#9152] Spectators can modify ride colours.
- Fix: [#9202] Artefacts show when changing ride type as client or using in-game console.
- Fix: [#9240] Crash when passing directory instead of save file.
- Fix: [#9245] Headless servers apply Discord Rich Presence.
- Fix: [#9293] Issue with the native load/save dialog.
- Fix: [#9322] Peep crashing the game trying to find a ride to look at.
- Fix: [#9324] Crash trying to remove invalid footpath scenery.
- Fix: [#9402] Ad campaigns disappear when you save and load the game.
- Fix: [#9411] Ad campaigns end too soon.
- Fix: [#9476] Running `simulate` command on park yields `Completed: (null)`.
- Fix: [#9520] Time Twister object artdec29 conversion problem.
- Fix: Guests eating popcorn are drawn as if they're eating pizza.
- Fix: The arbitrary ride type and vehicle dropdown lists are ordered case-sensitively.
- Improved: [#6116] Expose colour scheme for track elements in the tile inspector.
- Improved: Allow the use of numpad enter key for console and chat.
@Gymnasiast
Copy link
Member

Has been implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Add something new to the game.
Projects
None yet
Development

No branches or pull requests

8 participants