Comments (5)
- i18n is not bloat
- quicktemplate interoperation won't be any issue
- as for the library, go-localize seems the coolest
- the fact that it stores all the strings in the binary is nice
Do we need wiki-local locales? I don't think so.
The real issue with translations is that they are always outdated. It takes significant amount of work to keep them up-to-date
from mycorrhiza.
My opinion is that gettext is the most bloaty thing I've ever seen in my life. I would prefer something simple, maybe something YAML- or JSON-based. Gettext syntax is really ugly and is almost impossible to write by hand. So I'm already negatively biased towards gotext.
go-localize looks pretty clean, I like it. go-i18n doesn't look bloaty but yeah it does have a lot of stuff. All other ones are pretty cool too.
We could even have our own i18n solution myco-style. However, I wouldn't really support front-end translations for the same reason @bouncepaw has stated.
from mycorrhiza.
i18n is not bloat
Seemed bloated to me.
quicktemplate interoperation won't be any issue
I have little idea how would I inject these strings. But as we're coming up with the library choice, I seem to understand a proper way for it.
the fact that it stores all the strings in the binary is nice
If you're not against that, I'm ready for code-generated solutions, like fore-mentioned go-localize. Plurals, though, would be a hot mess.
Do we need wiki-local locales? I don't think so.
Well, that was just an assumption, as some themed wikis would utilize that. It might be difficult to implement. However, there is a little dirty hack for go-localize which would let us inject wiki-local strings. :^)
The real issue with translations is that they are always outdated. It takes significant amount of work to keep them up-to-date
Fallback locale to the rescue. If something isn't translated, it falls back to English.
from mycorrhiza.
We could even have our own i18n solution myco-style
I already have some dirty thoughts about that. But let's use something else (go-localize ig)
i18n is not bloat
Seemed bloated to me.
Let's consider i18n a form of accessibility. Accessibility is never bloat.
However, there is a little dirty hack for go-localize which would let us inject wiki-local strings.
What hack?
from mycorrhiza.
Let's consider i18n a form of accessibility. Accessibility is never bloat.
Oh, I've thought about i18n
the library. I'm eagerly agree with you about the i18n itself.
What hack?
:^) go-localize generates a very neat and flexible code.
Okay, so I've heard in the dev chat about fallback locales are a bad idea. But what are alternatives?
from mycorrhiza.
Related Issues (20)
- `silentGitsh` ignores environment variables HOT 1
- Changing passwords HOT 10
- Make a new category auto-complete based on JavaScript
- Category descriptions
- Mycorrhiza 1.15 HOT 2
- Categories is not available HOT 8
- Make -create-admin more known HOT 1
- Rename hypha renames git repo instead HOT 5
- custom.css file HOT 6
- Caching static resources HOT 2
- Replace default static files HOT 5
- naming hypha 'wiki' results in unexpected behavior HOT 1
- A proper admin creation
- Language should be picked in settings by admins, not on client
- External links with a globe icon should always be on the same line HOT 7
- Add local time buttons in the editor
- Interwiki transclusion
- Can't remove media file from hypha HOT 4
- Math/LaTeX support in markup HOT 2
- Decrease tab-size HOT 1
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 mycorrhiza.