Page MenuHomePhabricator

No clear instructions for translation
Closed, DuplicatePublic

Description

Hey guys,

first of all i want to thank you for the great work! I am more than grateful for such a "good usable" tool.

After i checked the installation instructions days and days and after i tried to install Phabricator on my managed hosting package (because i have absolutely no experience in setup and use an own server) i decided to rent an own jiffyBox (cloud server) - because there are no real alternatives to Phabricator.

After some hours of reading, trial and error, some more reading and so on - now it is running in my case. And the list of setup issues with very clear instructions to solve every of it was great!

Now i have a last problem, which i am not able to solve. Maybe you can give me a few tip to come to an end.

I searched for a way to translate the user interface to german. I found this Thread : https://secure.phabricator.com/T1139 with a german Translation-File ("PhabricatorGermanTranslation.php") . I copied this file to "/root/phabricator/src/infrastructure/internationalization/translation". But i don't know (and find no information about) how to actually USE this file and how to make it the default language for all users.

I found a hand full of patches and tried different ways - but i think my superficial knowledge is not sufficient to solve this.

Maybe you can give me clearly understandable steps? I know, it's not a bug! But i did not know where to post my request to.

best regards
Martin

Event Timeline

Do you mean the patch, added by devurandom ? The first part of the patch ($default...) is not existing in my PhabricatorAccountSettingsPanel.php

This is the full code of the file in my case.

<?php

final class PhabricatorAccountSettingsPanel
  extends PhabricatorEditEngineSettingsPanel {

  const PANELKEY = 'account';

  public function getPanelName() {
    return pht('Account');
  }

  public function getPanelGroupKey() {
    return PhabricatorSettingsAccountPanelGroup::PANELGROUPKEY;
  }

  public function isManagementPanel() {
    return true;
  }

  public function isTemplatePanel() {
    return true;
  }

}

Let me add some note: A changing of the "Translation" - Dropdown in the individual account settings never makes a change. So it is not important if i choose german or something else. That is not influencing my request, but is that a normal behaviour? Or did i maybe make a mistake when i set up the system?

My bad I didn't see the second comment by @chad. I know it is possible as @epriestley changed the language of this instance (see D16310#190724).

No i realized, that the File with the translation has to go to the "/root/libphutil/src/extensions" Folder, some Values are translated in the ui, but others aren't. Is there a file, where i can find all strings, to translate it? Or is there another way to find out how to translate a specific string?

You'll need to run arc liberate to pick up the new file so Phabricator can find it or put it in src/extensions. Then if you're an admin, go into Settings -> Global Default Settings, and change the install language there.

bin/i18n extract can extract strings for translations.

Translations are not really supported by the upstream, so these tools are 'use at your own risk'. If you have additional questions, see Support Resources or use Ponder.

I am so sorry, if my comments look a little bit "dumb".

But if i input arc liberate to my console, it just returns not to know this command. So i think i got something wrong.

i18n extract ran, but what is the result? Is there a file or something like that, which i can take to translate? Where do i find it? For now i am done with my questions. Sorry for putting this to here.

You should install arc. arc is the script in arcanist/bin/arc

Arcanist is the command line tool for Phabricator. You should have installed it when you installed Phabricator.

Generally, you're asking developer level questions about Phabricator and it sounds like you haven't used it yet. This will make helping you very difficult. We don't currently provide translations, although if you're technically proficient and familiar with Phabricator, it's not much work to hack it in.

Please use the Ponder application here if you have additional questions about Phabricator. Thanks!