Page MenuHomePhabricator

Update the output indentation for `values-qq/strings.xml` in the translatewiki bot
Open, LowPublic

Description

For the values-qq/strings.xml, we have the string items or plural items that have been output with 2 spaces indentation.

<resources xmlns:tools="http://schemas.android.com/tools" tools:ignore="all">
  <string name="app_name_prod">...</string>
  <string name="app_name_beta">...</string>
  <plurals name="page_edit_history_article_edits_since_year">
    <item quantity="one">...</item>
    <item quantity="other">...</item>
  </plurals>

But in Android Studio, the default indentation is 4 spaces, like below:

<resources xmlns:tools="http://schemas.android.com/tools" tools:ignore="all">
    <string name="app_name_prod">...</string>
    <string name="app_name_beta">...</string>
    <plurals name="page_edit_history_article_edits_since_year">
        <item quantity="one">...</item>
        <item quantity="other">...</item>
    </plurals>
Requirement

Update the translatewiki bot to make each <string> or <plurals> item have 4 spaces indentation instead of 2 spaces - same for the items in <plurals>

Event Timeline

cooltey triaged this task as Low priority.
Nikerabbit subscribed.

@cooltey You mention qq in the subject, but this applies to all languages, right?

I guess qq is mentioned because that’s the only directory that is touched both by developers working in Android Studio and by the TWN bot – values-en/strings.xml is only touched by developers, everything else (usually) only by TWN. So other files naturally use consistent indentation, it’s only values-qq/strings.xml where Android Studio and the TWN are edit warring.

@cooltey You mention qq in the subject, but this applies to all languages, right?

Hi @Nikerabbit
Yes, that would be great if the fix could apply to all the languages, thank you!