Comments (3)
Hi, thanks for your kind comments, I am glad you like it!
Since Clowd has no support for localisation currently, we would need to decide on a localisation architecture before we can start adding translations. I will start thinking about this and look at what localisation frameworks are available for WPF.
from clowd.
Just leaving here a suggested implementation.
Move all hard-coded strings into a resx
file, with separate keys for plurals. Example:
English:
- TimeStampDay_One {0} day
- TimeStampDay_Other {0} days
Polish (4 plural forms)
- TimestampMonth_One {0} miesiąc temu
- TimestampMonth_Few {0} miesiące temu
- TimestampMonth_Many {0} miesięcy temu
- TimestampMonth_Other {0} miesiąca temu
Ideally, we can find or create a roslyn source generator which turns this into strongly-typed functions. Example:
public class Translations
{
public string TimeStampDay(int p0);
}
For WPF we could look to generate a pre-built view model that accepts the parameters as properties and emits the strings as properties, or we could use a converter or markup extension. It's possible we can re-use some of https://github.com/rudyhuyn/PluralNet
The resx variations for other languages would be checked in to the main repo, but editing and collaboration could be done online. https://crowdin.com/ is free for open source projects, supports anonymous collaborators and branching, and supports resx natively.
In terms of timelines, I don't think this feature will be worth the time investment to develop unless we already have a handful of people who are using Clowd in other languages, and would volunteer to provide / maintain translations.
If anyone is interested in this getting developed, please comment on this thread to let me know what languages you could contribute.
This is also useful: https://devblogs.microsoft.com/ifdef-windows/use-a-custom-resource-markup-extension-to-succeed-at-ui-string-globalization/
from clowd.
I would enjoy contributing to the French translation!
from clowd.
Related Issues (20)
- Add Self-Hosted Hasty Paste to Pastebin upload solution HOT 1
- Possibility to choose the upload method when taking a screenshot HOT 2
- Clicking outside a text box doesn't exit edit mode anymore HOT 2
- Clowd crash when trying save capture HOT 2
- Minimized at system startup HOT 8
- Remove the countdown at begining of a recording ? HOT 2
- Improve usability of the mini color dialog HOT 1
- Hide video controls from video recordings HOT 1
- Function to pre-select areas to keep hidden/obscure while taking a video HOT 8
- Eset NOD32 Say updater file is a virus but im sure it a false positive ?? HOT 2
- Black screen on video recording HOT 3
- The creation of a gif also create a mp4 HOT 2
- Why "obligatory" recent history? HOT 1
- Capture cursor jumps around under high CPU load
- Option to disable context menu entries.
- Color picker opens and immediately closes if near the right edge of the screen
- Images uploaded with Imgur are not viewable within account
- Should be easier to open the editor with an existing image
- jpg instead of png as default format for save. HOT 1
- color viewer dialog accept abbreviated color codes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clowd.