Needs work
Project:
Drupal core
Version:
main
Component:
locale.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
13 Jun 2012 at 14:13 UTC
Updated:
30 Jan 2023 at 22:47 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
webflo commentedThis patch is only for fetching and parsing the localization server xml.
Comment #2
webflo commentedComment #3
gábor hojtsyTests look good, pretty much covers the whole thing :) Functionality also looks good, so just some comments:
File comment should be on one line.
Should have . at line end :) Mostly a problem at all other places for comments too in the patch :)
The locale_get.... and locale_fetch... might need to be in a namespace. Although we did move lots of stuff out of locale, it still has some different things, translation, import/export and now automation for the import is added. So some "namespacing" with the function names would be good.
l10n server translation is not very specific. Its a language list with some language metadata. :)
Comment #4
webflo commentedThanks for you review. Fixed the comments.
Comment #5
webflo commentedThe new namespace for this functionality is locale_translation.
Comment #6
gábor hojtsyIs that namespace not taken or will these fit nicely in there?
Comment #7
sutharsan commentedThe only use of this namespace are two variables. That does not seam a problem to me.
Comment #8
gábor hojtsyOk then, we'll revisit namespacing anyway :)
Comment #9
sutharsan commentedPatch reworked to apply to 8.x without being dependent on #1627006: Collect project information for translation update.
Comment #10
sutharsan commentedChanges: Some documentation added.
Comment #11
sutharsan commentedChanging project/component to D8 locale module
Comment #12
webflo commentedComment #13
gábor hojtsyI think it looks good. We should figure out if we want to push forward with this vs. actually implementing YAML export on the server, which is also useful/proposed for the automation to be done after #1632236: Convert built-in language list to CMI. We might want to make the server return YAML first and get that deployed on l.d.o, and use our YAML parser here.
Comment #14
penyaskitoCan we assume that YAML export in l.d.o is not gonna happen before D8? What are the next steps here once that noone is pushing for #1632236: Convert built-in language list to CMI?
Comment #15
gábor hojtsyI'd say this is lower priority compared to other issues where we actually deal with project identification and .po file downloads such as #1627006: Collect project information for translation update and #1632384: Import available language list from translation server. Our first priority is to solve downloading .po files for properly identified projects, and then if we have time and can somehow solve this, then we can update the language list from localize.drupal.org. Otherwise we'll just make the installer display all languages known locally (this list was previously synced with l.d.o), and then let our existing code set it up locally and use it. Not having project .po file downloads is the main pain. Not being able to update the locally known available language list is the last concern :)
Therefore I think we should postpone this on the other two issues.
Comment #16
gábor hojtsyRetitled to be more clear as to what we are postponing.
Comment #17
kristen polComment #18
gábor hojtsyGiven the above explained circumstances and this being at the low end of our priority list, I have little hope this would even happen in Drupal 8, so I don't think it makes sense to keep on a postponed state even on the Drupal 8 D8MI sprint focus list.
Comment #19
jair commentedComment #20
internetdevels commentedHere's a reroll.
Comment #32
ranjith_kumar_k_u commentedFixed all CS errors except for CSpell failures
Comment #35
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.