Extend <language> and <locale> tags#1725
Conversation
…SO-codes or names in different languages
|
Hi @rmcrackan! Have a look at this. I wanted to output language and region as two letter ISO codes. User documentation still missing. |
|
At a glance this looks good. Today's my last day before I leave town for a long weekend. I'll give this a better look when I return. Let me know if there are any specific places you'd like extra attention. |
|
Enjoy your weekend. And afterwards:
|
…SO-codes or names in different languages
…ge_and_region # Conflicts: # Source/_Tests/LibationFileManager.Tests/TemplatesTests.cs
Thanks. We had a great time
Yes and good catch. The migration and code changes felt like a pain so I just never got around to the fix. It was easy to procrastinate since audible so often uses different asin.s even for the same book in different regions, so the difference is usually academic. You're right though, it does belong in the same place as the account.
Sounds good to me. This looks great. I have a lot to say below but it's all minor: I'm not necessarily opposed to this, but what's the purpose? It doesn't have anything to do with the books themselves. Other minutia:
Again, just minor stuff. This is a solid PR. |
|
Since some of my recent changes could already work with CultureInfo, my thoughts naturally turn to possible applications such as ´<set-lang 'fr-CA'-><title[U]> (<language[{N}]>)<-set-lang>` ... Here, the two lang settings The other parts are all good spots - I'll address them shortly. |
|
With the changes I am working on for #1714 you might use |
|
Gracias. Is this ready for merge? |
|
If that’s all right, the |
|
Oh, right. I see you're reasoning for not doing so. It just feels weird to have so much good documentation for everything else then leaving these out. I think I'd like to see them included. |
|
The move of Locale from Book to LibraryBook is a real schema change: today Locale lives on Books, not LibraryBooks. The PR updates the EF model but does not include migrations, so existing databases will fail at runtime. Please add SQLite and Postgres migrations that
Please test upgrading from an existing DB file. |
|
oh dear. That is going bigger than I thought it would be. |
|
I think you can handle it, either here or in a diff PR. A separate PR does sound sensible for isolating this DB change though. Basically: Add migrations for both databases (SQLite and Postgres). |
|
And I'm here for questions and help. |
007458f to
8bad7d9
Compare
|
OK - refactoring of locale property undone for this PR |
|
Looks great. I'm ready to merge. Anything else you'd like to add before I mash the button? |
|
Well, guess what. I’ve found another place where special cases like “pre-amazon” are predefined: |
|
That's it! Unless you'd like something tuned 😉 |
I'm sure it won't surprise you to know that this used to all be 1 big solution. I broke AudibleApi into its own repo/nuget when developers expressed interest in using it without Libation. I tried to cleanly break up the 2 but as you've found, there are still residual parts where I probably could have done better. |
Awesome. Thank you so much. This is another great looking change set. Merging now. |
Extend <language> and <locale> tags to allow different outputs like ISO-codes or names in different languages