SMF icon indicating copy to clipboard operation
SMF copied to clipboard

$txt['package_will_fail_warning'] (Accusative problem?)

Open ChainyEO opened this issue 12 years ago • 10 comments

Just wondering whether the use of %1$s might make it difficult for translators. Some languages use the form "continue sth" rather than "continue with sth", so the accusative is needed. This might well mean a different grammatical form of the word. In the case of Esperanto, I can just add "n" after %1$s and the problem is solved. Not so sure about other languages, though.

At least one error was encountered during a test %1$s of this package.
It is strongly recommended that you do not continue with %1$s unless you know what you are doing, and have made a backup very recently.

This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you have not installed yet, or a package designed for another version of SMF.

ChainyEO avatar Jan 30 '14 14:01 ChainyEO

I really hate stuff like this. As far as I'm concerned the only proper way to solve this string is to have two of them.

Arantor avatar Jan 30 '14 14:01 Arantor

Come to think of it, I suppose one way of getting round this particular problem would be to use the passive form in a translation:

It is strongly recommended that the %1$s not be continued unless...

ChainyEO avatar Jan 30 '14 19:01 ChainyEO

Just out of interest, would the %1$s still work if I added "n" right on the end of it, eg. %1$sn, or would that cause it to fail?

ChainyEO avatar Jan 30 '14 19:01 ChainyEO

No, it would work fine. However injecting strings like that should really only be done unless you specifically cannot do it any other way precisely because of the issue you're raising.

Arantor avatar Jan 31 '14 01:01 Arantor

This is language specific so please close this issue and continue discussing this type of issues on our Localization board with our translators. We can't fix the problems language to language but do general fixes on strings.

XinYenFon avatar Feb 06 '14 01:02 XinYenFon

@Antes This isn't a case of trying to fix things language to language. It's a question of making it suitable for translation in general.

I opened a thread about this in the Localization Board on 30th Jan (http://www.simplemachines.org/community/index.php?topic=517802.msg3663460#msg3663460)

ChainyEO avatar Feb 09 '14 19:02 ChainyEO

So what exactly needs to happen here?

NanoSector avatar Aug 19 '14 11:08 NanoSector

@d3vcho,

sprintf($txt['package_will_fail_warning'], $txt['package_' . ($context['uninstalling'] ? 'uninstall' : 'install')]),

$txt['package_will_fail_warning'] = 'At least one error was encountered during a test %1$s of this package.<br>It is <strong>strongly</strong> recommended that you do not continue with %1$s unless you know what you are doing, and have made a backup very recently.<br><br>This error may be caused by a conflict between the package you\'re trying to install and another package you have already installed, an error in the package, a package which requires another package that you have not installed yet, or a package designed for another version of SMF.';
$txt['package_install'] = 'installation';
$txt['package_uninstall'] = 'removal';

We can fix this by either leaving this as is. Or by splitting this into 2 strings to handle this better.

Thoughts?

jdarwood007 avatar Jul 15 '18 20:07 jdarwood007

@jdarwood007 I'd say leave it as it is, but I have no problems on splitting it into 2 strings.

frandominguezl avatar Jul 15 '18 20:07 frandominguezl

Going to close this. This is best fixed in a future release of SMF where we can handle languages better by using some sort of nth control. Don't think we can make this in the release without breaking things or needing lots of testing.

jdarwood007 avatar Sep 02 '18 22:09 jdarwood007