Page 1 of 1

Translations for buttons (SUBMIT, SEND*)

Posted: Sun Mar 04, 2018 12:21 pm
by mdkdio
First thing, I am using swedish language for my forum.

There's a translation string for SEND_EMAIL (used for submit button) but none for SEND_PM what I can see.
So what is happening is that SUBMIT is used instead (which makes sense in English)

In order to try explain what is happening, in English vs. Swedish. I'll list some examples here:
Send PM = Post (Should be Send) (In Swedish it would be Skicka(Send) or Posta(Post) ... )
Post new forum thread = Post (Default is Submit, which makes sense in English) (In Swedish Posta)
Save settings = Submit - Works in English, but not in Swedish (It would've made better sense if Save (Save settings) was used. In Swedish (Spara).

That is just a few "button translations" I've found so far, could well be some more...

I don't mind hacking the files in order for this to work. i.e. add more buttons, but in what files do I need to make the changes?
language/sv/common.php is one (to add the translation strings), what other files to hack? ucp.php?

As a request, would it be possible to make a request for SEND_PM and SAVE_SETTINGS to be added into a future release of phpBB?

Thanks a mill in advance for any and all help and/or suggestions!

/mdkdio

Re: Translations for buttons (SUBMIT, SEND*)

Posted: Sun Mar 04, 2018 12:59 pm
by Crizzo
Hi,

thank you for your message.

I don't understand, why you cannot use this variables:
  • 'BUTTON_PM_NEW' (common.php)
  • 'POST_NEW_PM'
  • 'UCP_PM_COMPOSE'
  • 'SEND_PRIVATE_MESSAGE'
What would change with the new variable?
mdkdio wrote:
Sun Mar 04, 2018 12:21 pm
Save settings = Submit - Works in English, but not in Swedish (It would've made better sense if Save (Save settings) was used. In Swedish (Spara).
Can you show me, which one that is?

Regards

Re: Translations for buttons (SUBMIT, SEND*)

Posted: Sun Mar 04, 2018 9:07 pm
by mdkdio
Thanks Crizzo for your reply and suggestions!

BUTTON_PM_NEW = New PM
This is for composing a new PM (If I've read the code correct). i.e. for the button to press in order to write a new PM.

POST_NEW_PM = ucp.php file and is for Composing a message (Compose message)

UCP_PM_COMPOSE = Compose a PM (found in ucp.php)

SEND_PRIVATE_MESSAGE = common.php As it says, it is for "Send a private message" (from file: Send private message)

I should have mentioned that English is not my main language, so what I wrote in my OP may have not made much sense.
But I'll try again :)

When making a new thread, once done, one Post the new thread (Submit works in English).

One make changes to the settings. Once done one Submit the changes (Read: Save settings). It works fine in English, but for it to work in Swedish it
would have been better if Save settings was used (SAVE_SETTINGS).

Write a new PM, post a reply to a PM. One send a PM, or post a reply (or Send can be used if one like).
At the moment Submit is used for these as well.

Hope that makes better sense :)

Re: Translations for buttons (SUBMIT, SEND*)

Posted: Sun Mar 04, 2018 9:25 pm
by mdkdio
Crizzo wrote:
Sun Mar 04, 2018 12:59 pm

mdkdio wrote:
Sun Mar 04, 2018 12:21 pm
Save settings = Submit - Works in English, but not in Swedish (It would've made better sense if Save (Save settings) was used. In Swedish (Spara).
Can you show me, which one that is?

Regards
As an example: UCP - Forum Settings - Global settings (I didn't manage to find the exact file/text). At the bottom, there's two buttons
Reset and Submit

As explained in my 2:nd post. Submit (changes) makes sense in English.
IF it had been Save (settings) it would've been easier to translate.

Hope that answer your question.

Re: Translations for buttons (SUBMIT, SEND*)

Posted: Mon Mar 05, 2018 7:20 am
by Crizzo
hi,

You don't need to make a 1:1 translation. If submit is not fitting, then choose a different word for your language, that is all in your hands.

Regards

Re: Translations for buttons (SUBMIT, SEND*)

Posted: Tue Mar 06, 2018 3:41 pm
by mdkdio
Thanks Crizzo!

I'll try figure something out :)