-
Notifications
You must be signed in to change notification settings - Fork 279
Conversation
Hi @hishamco, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution! The agreement was validated by .NET Foundation and real humans are currently evaluating your PR. TTYL, DNFBOT; |
@ryanbrandenburg assigning to you to review and merge. The PR is a bit old but hopefully still valid. Please confirm before merging. |
@Eilon I'll try to check it too |
@hishamco thanks! And sorry for taking so long to get to this. |
No problem @Eilon, but one more thing I notice there're some PR & issues from long time back with no action taken |
The PR is valid because the English version of the views that I added before are not modified since 9-10 months ago 😄 |
@hishamco thanks, we're going through some older PRs so hopefully we'll get through them soon. |
@hishamco I don't think this is representative of the use cases for localized views. It appears to me that you've basically copied the existing cshtml files and renamed them to |
@ryanbrandenburg while we're using |
Simply a suggestion to differentiate localized views from |
If I understand correctly, the simple thing to do that we should make the keys in french. |
@hishamco no, I don't think it's sufficient to change the keys we're localizing based off of. This feature is meant to enable things like laying a page out differently for a language which reads up-down rather than left-right, things which change the actual structure of the html. If we just change the keys which we are localizing between the two versions I think users will find it very confusing. You are correct however that we needn't do more than one example of this, unless you had a specific feature or use case we want to showcase with a second one, which I can't think of. |
So what you mean by the last statement that you mentioned before?!! |
It was a bad idea on my part to suggest using literal strings, sorry for the confusion it has caused. |
Coz I'm confused too, perhaps I miss understood the issue 😞 |
@hishamco #127 is about MVC's What we're concerned about is the inability to observe that a non-default |
Thanks @dougbu for your clarification, I 'll modify the PR ASAP |
Feature exists for a reason 😈 Examples include alternate layouts for different locales (say ideographic versus non-ideographic), alternate layouts for different (mobile) clients, … |
Yep |
BTW LTR vs. RTL text doesn't make layout that much more different or difficult. It often boils down mostly to just setting a CSS style that flips the layout and text direction. |
@Eilon you 're right |
Any progress on this @hishamco? |
Sorry @ryanbrandenburg for delay, but really I got confused little bit, so that's why I asked @Eilon last time. |
Yeah I think the modifications in this PR aren't sufficiently compelling because they don't show why someone would want to use this feature. This feature is presumably useful if you:
Note: The sample in Entropy aren't necessarily about best practices, but rather they just show how to use a feature. So for this case, I think just having some relatively arbitrary differences between the views for different locales, that's fine. So the French view could simply have some extra French words somewhere in it to show that it's different. |
Yep, but using Arabic language or any other RTL language is cool, because the user will notice the change furthermore we can have some words somewhere in it |
That's fine too. |
I will make the change ASAP |
@Eilon that changes is almost ready, but I come up with a strange issue, I'm not sure if it's a bug or limitation, whenever I suffix any |
Please file that as a seprate issue. |
Unfortunately this blocked right now by issue aspnet/Mvc#5527 |
aspnet/Mvc#5527 doesn't have to block this, just don't create a |
It's not blocking this completely but if someone see the localized version, he/ she will notice that the part of the layout is not localized, so I want to avoid someone to post an issue regarding this, anyhow I will try to push my updates soon |
@ryanbrandenburg the PR has been updated |
@hishamco I think we're having a communication problem here as the cshtml of this PR still seems to be identical to that of the base (unless I've missed a change), only you've changed French to Arabic. The best way I can think of to convey what we want from this issue was to just write the code out, it's #180. |
@ryanbrandenburg what I have seen in the PR #180 is the same English version with extra row, I focused to change the look and feel of the layout, so the users will notice the view changes immediately, my mistake is I missed to change one of the view by adding a bold text like what you did. So either I add the missing in my PR or I will close it |
That's my bad @hishamco, I missed the css addition amongset the resx changes, this is a perfect example case for this feature. However, we have functional tests which rely on the french resources here. We'll need to either return everything to french or have french AND Arabic. Either way you can leave the css changes. In addition, were there changes to any of the cshtml files other than _Layout? If not please revert the rest of the View Localized |
The current changes in |
Any updates on this?!! |
@hishamco per your next to last comment we were waiting for you to revert the French views to fix our tests. |
@ryanbrandenburg It's my bad, I forgot that I replace the views, I thought that I add Arabic version and delete the French one 😄 |
@ryanbrandenburg could you please review the latest updates |
This demonstrates the use case really well, but there are also some files added that we don't need, I'm going to take your commit but remove the extras in a second one. Thanks for doing this! |
Closed in be24723 |
I understand your consideration |
This fixed issue #127