Closed (fixed)
Project:
Address Field
Version:
7.x-1.x-dev
Component:
Address formats
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
29 Jun 2012 at 17:40 UTC
Updated:
24 Dec 2014 at 22:24 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #1
adubovskoy commented+1. Or commit this patch or remove "states" for Russian language. Current empty textfield is confusing customers.
Comment #2
podarokFirst of all - You should reroll Your patch against latest dev version
trailing whitespace
Comment #3
andypostThis also debatable - should be use t("English name of Russian state") for at all!
Comment #4
adubovskoy commentedMy opinion: we should. I will translate it to official Eng. variant, "Республика Карелия" -> "Republic of Karelia" (http://gov.karelia.ru/gov/index_e.html), etc. Working on a patch. )
Comment #5
adubovskoy commentedHere is patch. For regions I use official translation of the Constitutuon RF. For keys I decided not to use abbreviations, but codes of Russian regions.
Comment #6
adubovskoy commentedHm, sorry. Last patch have mistakes. Here is the correct version.
Comment #7
neochief commentedLooks like there's still extra space before "else" statement.
Comment #8
podarok#6 looks good for me with #7
Comment #9
andypostExtra space in area-name and indent for else
Wrong indent
Comment #10
ardas commentedGreat! Thanks for this work. States look good to me as well.
+100 for including this into the module...
The only question is should this be in address.inc file or should we create it as a plugin (if this is possible in address field) so that this code is only loaded when it is really needed?
Comment #11
adubovskoy commentedRemove extra spaces, #7
Comment #12
podarokstatus
Comment #13
adubovskoy commentedOhh, I find one more extra space, fixing.
Comment #14
andypost#10 exposes a good idea, so we could allow this list to be maintainable and plugable
Still have extra space
Comment #15
adubovskoy commentedSorry. Fixed.
Comment #16
andypostGreat! Actually we need a follow-up to revamp a form for russian addresses and probably a different formatting. This change should have a big impact on adoption Drupal Commerce for russian market
Comment #17
podarokwaiting for #1814228: Offering to co-maintain Addressfield
Comment #18
srgk commentedhey! can anyone tell me how to sort the translated russian regions?
except manually in the patched file, where they are sorted alphabetically in English
thanks
друзья, подскажите как сортировать по алфавиту переведенный список регионов россии, спасибо!
Comment #19
andypostFor that purpose we need a special kind #1171454: Address formats for Estonia, Latvia, Lithuania
Comment #20
j0rd commentedThis is a duplicate of
#1829900: [meta] Address Field 2.x needs pluggable administrative areas and an actual API
If you think so to, please close your ticket.
Comment #21
j0rd commentedThis is a duplicate of
#1829900: [meta] Address Field 2.x needs pluggable administrative areas and an actual API
If you think so to, please close your ticket.
Comment #22
rszrama commentedAgreed w/ j0rd in that we won't solve the meta-issue here, but in the interest of moving things forward, I'm happy to commit Russian regions to the address.inc until we move to a more robust solution. However, looking at the patch that has the greatest support (#15), I don't get why you've decided to use these numbers. I see they're used on license plates (http://en.wikipedia.org/wiki/Vehicle_registration_plates_of_Russia#Regio...), but they aren't the ISO abbreviations (http://en.wikipedia.org/wiki/ISO_3166-2:RU). Why did you decide to use the numbers instead of the ISO abbreviations, and I suppose are region abbreviations ever used in address displays in Russia?
Comment #23
andypostRyan, ISO-abbr is never used in russian public address systems. Anyway iso-letters makes more sense as keys, because numbers are always changing (cities are growing). Also we are working on "kladr (fias)" module that could be used as vocabulary to fill areas and other subdivisions of addressfield.
Comment #24
adubovskoy commentedI agree, ISO will be better. Here is patch with new keys and region names from ISO.
Comment #25
rszrama commentedAs far as I know, the strings should still be in English in t() and then translated via the localization system. Your last patch in #15 still had them in English.
Comment #26
serega386 commentedelse if () {}
asort($format['locality_block']['administrative_area']['#options'],SORT_LOCALE_STRING);
Comment #26.0
serega386 commentedUpdated issue summary.
Comment #27
vvs commentedThanks for the patch. I'm added translation for it.
Comment #28
ulia commentedhi! 403 for download addressfield.ru_.po. could you help with this?
Comment #29
vvs commentedRenamed it to .txt
Comment #30
sin commentedThanks! What work need to be done here?
Comment #31
sin commentedHere is the patch at #24 rerolled against latest dev.
We added a render option value.
We also reordered address components as we used to in Russia.
The patch is prepared by Tempus Icarus International Summer School 2014 "IT in Engineering" students, Rostov-on-Don. Please test and commit :)
Comment #32
bojanz commentedHi everyone, sorry for the long wait in getting this committed.
I'm fine with committing the administrative areas in #31.
Comparing the ISO list (copied into the patch) with the UPU list, I see that the UPU list has shorter names, for example "Kabardino-Balkaria" instead of "Kabardino-Balkarskaya Respublika".
Is the current, long form the way russian speakers would expect to see it, or is it better to pursue the shorter form?
Comment #33
andypostThis list outdated a bit (no idea the state of Crimea) also Moscow used twice but we have moscow city and moscow oblast.
+1 to use respulika, kray as we write it as address
Comment #34
bojanz commentedThanks for the feedback, andypost.
I'll look into making the changes for Moscow (and Crimea if it got through ISO yet, but I doubt it).
Comment #35
andypostAccording to http://en.wikipedia.org/wiki/ISO_3166-2:RU
we need to use full names
PS: patch does not apply
Comment #36
adubovskoy commentedI think we need to follow ISO, https://www.iso.org/obp/ui/#iso:code:3166:RU. Short-list from russian post http://www.upu.int/fileadmin/documentsFiles/activities/addressingUnit/ru... can add some confusion, as example: Novgorod as province, but if I want send letter to someone from Borovishi (https://en.wikipedia.org/wiki/Borovichi), I need to write "Novgorodskaja oblast", as in ISO.
About Krimea: we haven't it in ISO now, we can just wait, let's not include it in patch.
I think patch from #34 is ready. Andypost, what do you think?
Comment #37
andypostSo here's reroll, let's get some more reviews for a week.
Suppose more Russians should chime in and test UI at
http://simplytest.me/project/addressfield/7.x-1.x?patch[]=https://www.dr...
Comment #38
andypostCurrently it looks like
Comment #39
pvasili commentedНужно не изобретать, а смотреть стандарты (например ФИАС) если для почты то, скорее почтовые правила.
Поскольку у нас 1 поле State, то край и регион тут лишние. В поле должна остаться только область.
Иначе вы не сможете отправить письмо в Хабаровский край и конкретный город без указания области (в разных областях названия городов зачастую повторяются). Ну и сами территориальные деления (кроме областей) иногда изменяются :).
В поле город (для районов и посёлков), областной город (без указания State для) для областных городов и 3 города фед.значения: Москва, Санкт-петербург, Севастополь.
Comment #40
pvasili commentedFunction t() is absolutely unnecessary.
(как приятно будет идивлен почтальон в РФ, если увидет адрес вместо транслитерации на латинице на ифрите или хинди :) )
Comment #41
adubovskoy commentedOuch. I have some questions for us:
for pvasili: we need t('') function, it's absolutely necessary for multilingual sites and font families without cyrillic.
Comment #42
bojanz commented#37 looks good to me.
I like "Altay, Respublika" because it gives me the most relevant part first.
Showing me "Republic of" first just adds visual noise and breaks proper sorting.
As for "city as federation subject", in that case it needs to be in both the administrative area (the province dropdown) and the locality.
I've geocoded a random Moscow address, and google agrees: https://maps.googleapis.com/maps/api/geocode/json?address=Pravda%20stree...
Comment #43
ofry commentedbojanz, it isn't Moscow :) It's Minsk, capital of Belarus' :)
Comment #44
ofry commentedHere you are random Moscow address:
https://maps.googleapis.com/maps/api/geocode/json?address=55.656978,%203...
Comment #45
bojanz commented@ofry
Doesn't say Minsk anywhere. In any case, your link has the same example, Moscow as both the city and the province.
Comment #46
andypost@bojanz #42 points for me to Беларусь (BY) probably their geocoding affected by source IP somehow.
PS: summary updated
Comment #47
bojanz commentedI just closed #1152700: Support Russian adresses, the latest commits fixed the field ordering for Russia, it now matches what is defined in Google's dataset for Android.
No weight changes need to be done in this patch. See screenshot.
Comment #48
andypostRerolled and cleaned up.
PS: we need coreissue to update "Russia" to "Russian Federation" ;)

Comment #49
bojanz commentedCommitted, thank you!
Comment #51
andypostThe core issue is #2390995: Fix Russian Federation ISO label