"me-web?" 0.7.0: the name in quotes, copy buttons, and every translation rewritten in plain words
- The name is now always written in quotation marks, each language with its own: “me-web?”, «me-web?», „me-web?“, « me-web? », 「me-web?」. Without them the question mark read as the end of a sentence. In Arabic, Hebrew and the other right-to-left languages the question mark no longer jumps to the wrong side of the name. - Your addresses, your router, your network, the reverse name, the route and the code of a submission you sent now sit in a small box with a copy button, ready to paste into a message to your provider or anywhere else. - Every translation except English and Italian was rewritten for people who are not technical: everyday words first, the technical term in brackets, and one word for one thing across the whole app. They are still machine drafts; "Suggest a correction" is welcome in any language. - A few lines are plainer in English and Italian too: the test servers for calls, and the server in the middle that carries a call when two homes can't connect directly. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012CzABvBkbcFqoHdmi8b9WB
This commit is contained in:
1 parent
d18caed157
commit
320936c688
260 files changed
+23662
-18072
No files matched your search
@@ -10,6 +10,8 @@ namespace MeWeb.App.Services;
|
||||
|
||||
public sealed class Localizer : INotifyPropertyChanged
|
||||
{
|
||||
const string Name = "me-web?";
|
||||
|
||||
readonly Dictionary<string, string> english = Load(Languages.Fallback.Code);
|
||||
Dictionary<string, string> current;
|
||||
|
||||
@@ -43,6 +45,11 @@ public sealed class Localizer : INotifyPropertyChanged
|
||||
{
|
||||
Language = language ?? Languages.Fallback;
|
||||
current = Language.Code == Languages.Fallback.Code ? english : Load(Language.Code);
|
||||
if (Language.Rtl)
|
||||
{
|
||||
var shown = current;
|
||||
current = english.Keys.Union(shown.Keys).ToDictionary(k => k, k => (shown.GetValueOrDefault(k) ?? english[k]).Replace(Name, $"\u2066{Name}\u2069", StringComparison.Ordinal));
|
||||
}
|
||||
Culture = CultureFor(Language.Code);
|
||||
CultureInfo.DefaultThreadCurrentCulture = CultureInfo.DefaultThreadCurrentUICulture = Culture;
|
||||
CultureInfo.CurrentCulture = CultureInfo.CurrentUICulture = Culture;
|
||||
|
||||
Reference in new issue
Block a user