swift should be internationalized/translated

Bug #608725 reported by Monty Taylor
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Object Storage (swift)
Fix Released
Wishlist
Unassigned
openstack i18n
Fix Released
High
Unassigned

Bug Description

All of the messages in swift are in English, but there's other folkses out there. We should internationalize the source code and add support for translated messages.

Revision history for this message
Chmouel Boudjnah (chmouel) wrote :

Most server softwares I know does not have any translation in the source code I am not sure what's the benefit of it..... And as a foreignner I don't see the value (getting confusing for howto's and other documentation to be in sync with the right error messages).

Revision history for this message
Jay Pipes (jaypipes) wrote :

I think Monty is talking about error messages and log output from the program, not translating the actual source code.

For an example of server software that has error and log messages translated to multiple languages, see Drizzle:

https://translations.launchpad.net/drizzle

Cheers!

jay

Chuck Thier (cthier)
Changed in swift:
importance: Undecided → Wishlist
Revision history for this message
Chuck Thier (cthier) wrote :

Do we have people asking for this feature yet? Internationalization is a bit of work (both initially and continually during development). While I'm not entirely against this, I don't want to go though a lot of effort to support this if nobody needs it yet.

Revision history for this message
Jay Pipes (jaypipes) wrote :

It's a wishlist item, that's all. i18n will certainly increase adoption of Swift, though...

Revision history for this message
Bob (rclocal) wrote :

To be honest, I think it's far too early to consider internationalisation, two big reasons :

1/ The current Swift code is far too willing to just to a straight stacktrace dump, hence generating incomprehensible cryptic messages. Until the development community start implementing try/catch consistently, it's fairly pointless at looking at translating the few messages that are caught and/or event messages generated.

2/ Having contributed a handful of French translations myself, I have decided to stop. Why ? Because the original English language messages are so lousy ! There's no consistency. Both in the formatting of the messages (for example some have a prefix, some don't when they should). There's no consistency in the wording either..... some are multiple lines of unecessary waffle, others are too short. Some use abbreviations, others don't. Some are written in all caps for no good reason, some are not. Some are informally worded, others are not. Others are missing basic punctuation and grammar (e.g. "CannotSendRequest" what happened to the spaces ?) The list goes on.

Sorry to pour rain on the parade, but until the basic Swift code is fixed, along side its original English language messages, there is not much point putting effort into translating anything.

Tom Fifield (fifieldt)
Changed in swift:
status: New → Confirmed
Tom Fifield (fifieldt)
Changed in openstack-i18n:
status: New → Confirmed
Revision history for this message
Ying Chun Guo (daisy-ycguo) wrote :

Hello,

Creating swift project in Transifex meets with problem because Transifex suddenly changes the policy: projects cannot be created if the organization has the source language translation team. OpenStack organization in Transifex has English team. So we cannot create projects with source language setting as English.

I have asked help from Transifex team. After a long time communication, they finally recognized this issue. Below is their response email. I think, it might take some time till they fix this issue. I will update as soon as I get any updates from Transifex.

----
Hello Daisy,

After a long discussion with our developments we fully understand how big this issue is for you and we are trying to find a solution.
Please, keep in mind, that this might take some time, But what you asked for, does make sense and we will consider it!
I am going to inform you, as soon as possible for any news.
Sorry for any inconvenience.

Best,
Elena

Elena Kazia Batma
<email address hidden>
---

Regards
Daisy

Changed in openstack-i18n:
importance: Undecided → High
Revision history for this message
Tom Fifield (fifieldt) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to swift (master)

Reviewed: https://review.openstack.org/97092
Committed: https://git.openstack.org/cgit/openstack/swift/commit/?id=7a192987c0a5edb9e239ffb4aba3b1dac083b41e
Submitter: Jenkins
Branch: master

commit 7a192987c0a5edb9e239ffb4aba3b1dac083b41e
Author: Andreas Jaeger <email address hidden>
Date: Sun Jun 1 11:51:29 2014 +0200

    Setup localization properly

    To start translation of swift, we need to initially import the
    translation file - and place it at the proper place so that
    the usual CI scripts can handle it.

    The proper place is for all python projects
    $PROJECT/locale/$PROJECT.pot, so move locale/$PROJECT.pot to the new
    location and regenerate the file.

    Update setup.cfg with the new paths.

    Further imports will be done by the OpenStack Proposal bot.

    Change-Id: Ide4da91f2af71db529f4a06d6b1e30ba79883506
    Partial-Bug: #608725
    Closes-Bug: #1082805

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to swift (feature/ec)

Fix proposed to branch: feature/ec
Review: https://review.openstack.org/122541

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to swift (feature/ec)
Download full text (21.0 KiB)

Reviewed: https://review.openstack.org/122541
Committed: https://git.openstack.org/cgit/openstack/swift/commit/?id=18901494e9b4b47fb181a5ead8ed82738db8563f
Submitter: Jenkins
Branch: feature/ec

commit fc5cee5f05692f7e6dd5ad5a6d0ae682dd4bf3e0
Author: Christian Schwede <email address hidden>
Date: Mon Sep 15 17:22:54 2014 +0000

    Allow filtering by region in swift-recon

    The option "-r" is already used, thus only "--region" is used to specify
    filter by region.

    Change-Id: If769f2f3191c202933b03b48fe0f22b7c94a4dd6
    Closes-Bug: 1369583

commit 423ac74e888dcd693129100e0b37a51428bb62e1
Author: Christian Schwede <email address hidden>
Date: Sun Sep 14 23:41:19 2014 +0200

    Fix internal link to keystoneauth in documentation

    This patch fixes a broken link at the end of the table in
    http://docs.openstack.org/developer/swift/logs.html#swift-source

    Change-Id: I989173ac93e0f840997333be0d5cec07eb77b304

commit 64548420c87f3163ed543c9e9a02a4f1abec69e0
Author: Andreas Jaeger <email address hidden>
Date: Sat Sep 13 09:48:14 2014 +0200

    Stop using intersphinx

    Remove intersphinx from the docs build as it triggers network calls that
    occasionally fail, and we don't really use intersphinx (links other
    sphinx documents out on the internet)

    This also removes the requirement for internet access during docs build.

    This can cause docs jobs to fail if the project errors out on
    warnings.

    Change-Id: I71e941e2a639641a662a163c682eb86d51de42fb
    Related-Bug: #1368910

commit 5c9835125802c51e2eb2823f5208d53c358a5e84
Author: Christian Schwede <email address hidden>
Date: Fri Sep 12 14:37:04 2014 +0000

    Fix RingBuilder._build_max_replicas_by_tier docstring

    The current docstring doesn't include zones, and the order of the
    entries is not up to date with the current code. Let's fix this.

    Change-Id: Ibabd79427b83d9e8c86b2caeb93dee219c8274c0

commit a03732e142540e5a7d6cb11de5232f0642beb20d
Author: Alistair Coles <email address hidden>
Date: Fri Sep 12 10:20:19 2014 +0100

    Add comments to clarify change to www-authenticate test

    Trivial patch to tidy-up change to the functional test for
    www-authenticate header and add a comment to explain
    that multiple header values might be returned.

    Change-Id: If62cb3fd9e11450a2be0cec71e80ecb74a959d04
    Related-bug: 1368048

commit ab96796dc8d1da9037330da0822c8b8d2264d192
Author: Alistair Coles <email address hidden>
Date: Thu Sep 11 10:23:32 2014 +0100

    Fix broken www-authenticate functional test

    testQuotedWWWAuthenticateHeader functional test started failing
    due to a change to keystonemiddleware.auth_token, which now adds
    its own www-authenticate header in addition to the one that swift
    keystoneauth adds.

    This patch changes the functional test to check expected
    swift generated header value is in the concatenation of
    www-authenticate values.

    Verified that functional tests still pass using tempauth.

    Closes-Bug: 1368048
    Change-Id: I913af077df800a559d259c1622f286ad10eae9df

commit f4d3facdf...

Revision history for this message
Tom Fifield (fifieldt) wrote :

The translation toolchain is working - strings are being uploaded to transifex, downloaded and committed to swift. French is already at 15% translated. This seems sufficient to close the bug on the i18n team side, as swift now has the same status as other projects.

Changed in openstack-i18n:
status: Confirmed → Fix Released
Changed in swift:
status: Confirmed → Fix Committed
Thierry Carrez (ttx)
Changed in swift:
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on swift (master)

Change abandoned by Tim Burke (<email address hidden>) on branch: master
Review: https://review.openstack.org/318989

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.