Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
t('Not sure what to do? Try the "!getting-started" page.', array('!getting-started' => $getting_started));
Could become very difficult...
An error occurred at
Could become very difficult, too.
I will post more when I found more... could take some time.
Comment | File | Size | Author |
---|---|---|---|
#22 | minimal-t-fixes-279073-22.patch | 15.92 KB | pwolanin |
#21 | minimal-t-fixes-279073-21.patch | 14.84 KB | pwolanin |
#18 | views_tranlatability6.patch | 56.44 KB | hass |
#14 | views_tranlatability5.patch | 60.49 KB | hass |
#13 | views_tranlatability1.patch | 41.12 KB | hass |
Comments
Comment #1
hass CreditAttribution: hass commentedI'd like to log some more issues here... and afterwards we go over and try to fix all.
Invalid display id while regenerating tabs
Wouldn't it clearer to say
Invalid display id found while regenerating tabs
or have I understood this wrong?Comment #2
hass CreditAttribution: hass commentedView analysis can find nothing to report.
For my understanding... does this mean
View analysis cannot find anything newsworthy.
? Should be more context sensitive...Comment #3
hass CreditAttribution: hass commentedWhat single character to use as a decimal point.
What single character to use as the thousands separator.
Text to put before the number, such as currency symbol.
Text to put after the number, such as currency symbol.
When I saw this strings I wonder much... this is something that *will* dynamically change per language view... and we have a language switcher in D6 - so this strings are not wrong, but the logic behind sounds really wrong.
Comment #4
hass CreditAttribution: hass commentedDisplays the default summary summary as a list.
Looks like one "summary" too much.
Comment #5
hass CreditAttribution: hass commentedAside it would be good to change the many "query" to be more explainable like "database query" when it is a db query. This makes translation also easier.
Comment #6
hass CreditAttribution: hass commentedThis view is being edited by user !user, and is therefore locked from editing by others. This lock is !age old. Click here to !break.
One more string that is not context sensitive.
Comment #7
merlinofchaos CreditAttribution: merlinofchaos commentedWhy? That's a perfectly valid string.
I use the PHP tools I am given. Those strings are should at least be run through t(). Not ideal, I know, but that's what we got.
No.
Look, this is the Drupal standard for embedding links into text. I'm sorry if it's hard to translate, but making it easy to translate means making really ugly strings. Cope with it.
Comment #8
hass CreditAttribution: hass commentedDisplay comments only if a user posted the node or commented on the node.
How is is possible that a comment to a node exists if the node is not yet saved/posted?!?
Comment #9
hass CreditAttribution: hass commentedOnly the checked roles will be able to access this display. Note that users with \"access all views\" can see any view, regardless of role.
Should be
Only the checked roles will be able to access this display. Note that users with \"access all views\" can see any view, regardless of their role.
Comment #10
hass CreditAttribution: hass commentedThe main issue is context sensitive. If you translate "!getting-started" used in several ways you are lost as you are unable to get the translation of the place holder to meet for more then one place. It could be simply solved in a way how core have done in D6.
For example:
t('Not sure what to do? Try to <a href="@link">install the advanced help module</a> for the getting started page.', array('@link' => $advanced_help_install_link));
Now we have a context sensitive translation that will work in all languages for sure! Also take a look into D6 core if you don't trust me... or ask Gabor... :-) Aside the string seem to contain a typo I fixed above ("Try to install the advanced help..." vesus "Try the 'Install the advanced help...' ... ").
Completely the same will happen here:
This view is being edited by user !user, and is therefore locked from editing by others. This lock is !age old. Click here to !break.
Comment #11
hass CreditAttribution: hass commentedThere is an unfixed
exposed>
in the code that should beexposed
Comment #12
hass CreditAttribution: hass commentedThere are many problematic strings in
includes/plugins.inc
like:t('You may also adjust the !settings for the currently selected style by clicking on the icon.', array('!settings' => $this->option_link(t('settings'), 'style_options')))
We need to change the function
option_link
to solve this.Comment #13
hass CreditAttribution: hass commentedThis is the first step... it's not complete, I've reached modules/node.views.inc from top of all files. plugins.inc stuff needs to be done and the rest of the files needs review.
Comment #14
hass CreditAttribution: hass commentedNew patch attached.
It does not yet fix all context sensitive strings as I understand the problem with this strings (from #7), but nevertheless this bugs should also be fixed later. As reference see the "example of incorrect usage of t()" in http://api.drupal.org/api/function/t/6, please.
Comment #15
merlinofchaos CreditAttribution: merlinofchaos commentedAre you continuing to work on this patch?
Here is my review of what is currently here:
The original is correct; the function is set_display() not Set_display(). Since we're using a function name, the case matters. A feasible correction would be:
One of the above is incorrect; I think it's probably the second one. Both are checkboxes and we don't ordinarily put periods on checkbox titles.
This change results in this sentence:
That period doesn't belong, IMO.
That period is a delimiter, not an end of sentence, as in x.y -- for example, node.title
I like to format my code to 80 columns when there's a convenient way to do so. That ? made it convenient, so I'd prefer to leave that cr+tab in.
Shouuldn't you have added periods to these while making those changes? Alt text seems like it should have periods too. (I wish I were less sloppy about that, but I seem to just make that error by habit.)
The above text is link text; using % instead of ! will result in a double check_plain on the display title, causing double encoding ickiness if someone puts special characters in the display name. Also, I'm not comfortable adding an em inside link text.
Are you allergic to semi-colons? I realize I overuse them but you're removing perfectly valid ones.
This change creates an invalid clause. In your version the comma should not appear. My version breaks it into distinct thoughts "do this; why", which I personally find easier for a user to interpret, but that's a matter of opinion.
Why?
While there may be some inconsistency, generally within Drupal whenever there is an operations link (see admin/content/node-types and admin/content/node) the operations are not upper-cased. These should remain lowercase. Also see Drupal's node/XXX/revisions for the 'revert' example.
Don't bother changing these; these are generated from an export, and the export will never be smart enough to choose between ' and " intelligently. The next time the export is updated this will just be reverted.
About a year ago there was a long thread about the more link. The end result: try to keep it just like Drupal's. Leave it lowercase.
Comment #16
hass CreditAttribution: hass commentedComment #17
hass CreditAttribution: hass commentedThank you for the feedback and corrections:
I fixed the
set_display()
as suggested.Removed the wrong period.
Removed the wrong blank.
I'd like to keep this change as is. It's a Drupal code style and I have had Garbor in my mind who said often "we have good editors that wrap for us"... that's mostly the why + I find it more readable, but I wouldn't fight for this very much if you don't like it.
Well I thought about adding periods here, but decided first, not. It thought it's like a title... but otherwise not... I was uncertain what to do here. So - now added the periods.
Yes, a little bit - if used as sentence delimiter. I'm not sure why you like them and it may be valid to use them here, but have you ever read a book that delimit all sentences with semicolons? I'm not... :-)
I turned this to the above for now and hope this one is better for you, nevertheless it wasn't "wrong" in past. If I look through core sentence I see such semicolon constructs in very rare situations only. As this is such rare I expect it is flipped through some other fingers on the string review :-). But not sure...
No big thing - the new string is a reusable core string from taxo module. yched have done this change in CCK and I thought to follow him...
Reverted back. However I wonder... I will take a look to core. I thought we have only upper-case first operation names as this makes it easier to distinguish where it starts and ends or you have multi-word operations.
Reverted back.
Reverted back.
It is somewhat difficult to figure out what is check_plain'ed and what not... I turned this back for now. The placeholder stuff is something i'm not sure what direction we should go. Normally I think here should be an EM'd value as it would otherwise becomes difficult to figure out if this is a name from something outside. The double quotes are helpful here and make this clear, but what is about
t('Display plugin @plugin is not available.', ...
that seems to be wrong. You are adding a string from outside - inside a sentence. I think this should all be%plugin
to add the theme placeholders!?This is one of the open TODO's. You can see how buggy this context sensitive sentence is... He need to change this, but I'm not yet sure how. See #10 where I already wrote how this should looks like.
Comment #18
hass CreditAttribution: hass commentedRe-roled patch attached.
Comment #19
hass CreditAttribution: hass commentedI'm unsure about some periods in checkbox titles...
Comment #20
zirvap CreditAttribution: zirvap commentedAbout the string "View" and/or "view": Is this view-as-verb or view-as-noun?
View-as-noun is problematic since "View" and "view" are used as verbs in core (like the tab on http://drupal.org/user). For some languages there's no word or expression which can cover both meanings.
In core D6, a similar problem ("May as long month name" = "May as short month name" in English, but not in all other languages) was solved by introducing the string "!long-month-name May", while keeping the string "May" for the short version.
Is it possible to use a "!noun View" for those cases where we're talking about "a view", and not "to view"?
Comment #21
pwolanin CreditAttribution: pwolanin commentedhere are some minimal fixes pulled from the last patch. Skipped most of the punctuation/capitalization suggested changes.
Comment #22
pwolanin CreditAttribution: pwolanin commentedmissed the change to the template file.
Comment #23
merlinofchaos CreditAttribution: merlinofchaos commentedOk, I committed pwolanin's stripped down version. I realize there are other issues remaining but some of them require more thought. It's best to do the ones that require thought separately and get the easy ones in.
Comment #24
merlinofchaos CreditAttribution: merlinofchaos commentedOh and let's separate ones that require thought into separate issues.
Comment #25
zirvap CreditAttribution: zirvap commentedIs the "view as noun" vs "view as verb" thing in #20 one of those that require thought?
Comment #26
merlinofchaos CreditAttribution: merlinofchaos commentedzirvap: Sorry, yes it may be. I think it may only matter if View is ever used as a standalone, though, which I'm not sure it is.
Comment #27
zirvap CreditAttribution: zirvap commentedNo problem, I'm just wondering whether I should start a new issue for this or not.
Searching for "view" in http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/views/trans... results in
I've no idea if that's a view-as-verb or view-as-noun context, though.
Comment #28
hass CreditAttribution: hass commented@zirvap: that's difficult to answer in general... :-) I'm often search the code for e.g.
'view'
and if this makes things not clear, try to find it from UI side... but I understand this is sometimes not easy to translate or untranslatable. Often it is much easier for all to try to make the single word context sensitive by changing into a sentence or being more descriptive with 2-3 words... this could solve the problem in many cases, but not all. Not sure how to solve in general.Comment #29
merlinofchaos CreditAttribution: merlinofchaos commentedThose you list are all 'view' as verb -- they are links to objects (content, comment, user) with 'view' as the default link text, in the same manner that core uses it.
Comment #30
zirvap CreditAttribution: zirvap commentedAha, then there's no problem -- or at least, there's no problem with ambigious translations of the string "view" :-)
Comment #31
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.