Questions tagged [localization]
Use this tag for reviews of code that addresses localization/globalization concerns, which make an application be displayable in multiple languages.
27 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
7
votes
2
answers
140
views
A hatchling hook plugin to compile gettext po file at build time
Context
General
The Python Packaging Authority (PyPA) provides a framework to easily build and install packages from a source project. It works nicely for Python code and text files. I chose to use ...
6
votes
3
answers
571
views
locale-aware trim functions for std::string
I have written the below two trim functions for std::string and std::basic_string that are locale-aware.
Both trim all white ...
0
votes
1
answer
659
views
how to make inputs work well with special characters using the locale.h library? [closed]
for some reason the function setlocale(LC_ALL, "English") doesn't work when using an input function,(getchar, scanf, fgets,..), to get a special character, (Ç, ã, õ, é,...).
...
6
votes
1
answer
300
views
Custom manipulator for changing at what characters a std::istream split words
Introduction
By default, input streams (e.g., std::cin or a std::istringstream) split words at space when using the ...
0
votes
1
answer
894
views
JavaScript - Difference between two dates in days or less [closed]
I have 2 dates that I would like to have the difference between them in days and if less than a one day simply show "less than a day".
...
9
votes
2
answers
2k
views
Translating LaTeX documents into different languages using DeepL API
I'm coming from C and C++ and have often troubles using Python's full potential. This is a script I wrote to translate LaTeX documents into different languages. A parser replaces all latex specific ...
4
votes
2
answers
126
views
Simple locale loader
I have a class that loads locales from a database. I'm not sure if locale is the right word. It's basically loading texts for a game, generic sayings like alerts and error messages.
I'm also not sure ...
3
votes
1
answer
265
views
Multilingual app without localizing
I'm making an iOS app which supports multiple languages but not in the built-in localized way. In iOS, for localization to work, the user has to change the device's language. But in the app I'm ...
3
votes
1
answer
1k
views
Including ResourceBundle in enum in order to display enum constant name in different languages [closed]
I'm working on spring web application which has to be accessible both in polish and english. So generally, it's all about internationalization.
Of course, internationalization is based on getting ...
2
votes
1
answer
994
views
Localization class in C++
I have created simple localization system for my app. What do you think, is there something "off"
Header:
...
2
votes
2
answers
403
views
Finding an arbitrary word in a string of words given an offset
Background
Given a string (s) and an offset into that string (offset), find the whole word that can be found at the given ...
12
votes
1
answer
2k
views
CultureInfo with fallback routing to another language
Our company needs a localization/translation behavior which allows incomplete (ResX) resources.
If a String
isn't available in italian
fall back to the next roman language, like french
fall back to ...
1
vote
1
answer
379
views
A localization helper in codeigniter
I created a project to better understand CI3, while developing it I tried to introduce localization elements.
When I tried to localize the view everything messed up. I made a helper to identify if the ...
1
vote
1
answer
1k
views
C++ conversion from std::string to arithmetic type using std::locale::classic()
I recently had a bug where extracting a decimal from a string failed due to locale settings. That is, some locales use a , as a decimal point, rather than a ...
6
votes
1
answer
3k
views
Localized Enum in C# 6
I had to jump through some hoops to get a localized enum working. I went through dozens of SO articles that never actually answered the relevant conundrum with a working solution. So I made my own:
I ...