language_id -> local_language_id

This commit is contained in:
Eevee 2011-03-28 19:12:30 -07:00
parent 93a85f020f
commit f24702b7a9
50 changed files with 60 additions and 69 deletions

View file

@ -1,4 +1,4 @@
ability_changelog_id,language_id,effect ability_changelog_id,local_language_id,effect
1,9,Has no effect in battle. 1,9,Has no effect in battle.
2,9,Does not prevent regular KOs from full [HP]{mechanic}. 2,9,Does not prevent regular KOs from full [HP]{mechanic}.
3,9,Has no overworld effect. 3,9,Has no overworld effect.

1 ability_changelog_id language_id local_language_id effect
2 1 9 Has no effect in battle.
3 2 9 Does not prevent regular KOs from full [HP]{mechanic}.
4 3 9 Has no overworld effect.

View file

@ -1,4 +1,4 @@
ability_id,language_id,name ability_id,local_language_id,name
1,1,あくしゅう 1,1,あくしゅう
1,5,Puanteur 1,5,Puanteur
1,6,Duftnote 1,6,Duftnote

1 ability_id language_id local_language_id name
2 1 1 あくしゅう
3 1 5 Puanteur
4 1 6 Duftnote

View file

@ -1,4 +1,4 @@
ability_id,language_id,effect,short_effect ability_id,local_language_id,effect,short_effect
1,9,"This Pokémon's moves have approximately a 10% chance to make the target [flinch]{mechanic}. 1,9,"This Pokémon's moves have approximately a 10% chance to make the target [flinch]{mechanic}.
This ability does not stack with a held [King's Rock]{item}. This ability does not stack with a held [King's Rock]{item}.

1 ability_id language_id local_language_id effect short_effect
2 1 9 This Pokémon's moves have approximately a 10% chance to make the target [flinch]{mechanic}. This ability does not stack with a held [King's Rock]{item}. Overworld: The wild encounter rate is halved while this Pokémon is in the party. Has a chance of making the opponent [flinch]{mechanic} when attacking.
3 2 9 The [weather]{mechanic} changes to [rain]{mechanic} when this Pokémon enters battle and does not end unless replaced by another weather condition. If multiple Pokémon with this ability, [Drought]{ability}, [Sand Stream]{ability}, or [Snow Warning]{ability} are sent out at the same time, the abilities will activate in order of [Speed]{mechanic}, respecting [Trick Room]{move}. Each ability's weather will cancel the previous weather, and only the weather summoned by the slowest of the Pokémon will stay. Summons [rain]{mechanic} that lasts indefinitely upon entering battle.
4 3 9 This Pokémon's [Speed]{mechanic} rises one [stage]{mechanic:stat modifier} after each turn. Raises [Speed]{mechanic} one [stage]{mechanic:stat modifier} after each turn.

View file

@ -1,4 +1,4 @@
berry_firmness_id,language_id,name berry_firmness_id,local_language_id,name
1,9,Very Soft 1,9,Very Soft
2,9,Soft 2,9,Soft
3,9,Hard 3,9,Hard

1 berry_firmness_id language_id local_language_id name
2 1 9 9 Very Soft
3 2 9 9 Soft
4 3 9 9 Hard

View file

@ -1,4 +1,4 @@
contest_effect_id,language_id,flavor_text,effect contest_effect_id,local_language_id,flavor_text,effect
1,9,A highly appealing move.,Gives a high number of appeal points wth no other effects. 1,9,A highly appealing move.,Gives a high number of appeal points wth no other effects.
2,9,Affected by how well the appeal in front goes.,"If the Pokémon that appealed before the user earned less than three appeal points, user earns six; if three, user earns three; if more than three, user earns none." 2,9,Affected by how well the appeal in front goes.,"If the Pokémon that appealed before the user earned less than three appeal points, user earns six; if three, user earns three; if more than three, user earns none."
3,9,"After this move, the user is more easily startled.","If the user is jammed this turn after using this move, it will receive twice as many jam points." 3,9,"After this move, the user is more easily startled.","If the user is jammed this turn after using this move, it will receive twice as many jam points."

1 contest_effect_id language_id local_language_id flavor_text effect
2 1 9 A highly appealing move. Gives a high number of appeal points wth no other effects.
3 2 9 Affected by how well the appeal in front goes. If the Pokémon that appealed before the user earned less than three appeal points, user earns six; if three, user earns three; if more than three, user earns none.
4 3 9 After this move, the user is more easily startled. If the user is jammed this turn after using this move, it will receive twice as many jam points.

View file

@ -1,4 +1,4 @@
contest_type_id,language_id,name,flavor,color contest_type_id,local_language_id,name,flavor,color
1,9,Cool,Spicy,Red 1,9,Cool,Spicy,Red
2,9,Beauty,Dry,Blue 2,9,Beauty,Dry,Blue
3,9,Cute,Sweet,Pink 3,9,Cute,Sweet,Pink

1 contest_type_id language_id local_language_id name flavor color
2 1 9 9 Cool Spicy Red
3 2 9 9 Beauty Dry Blue
4 3 9 9 Cute Sweet Pink

View file

@ -1,4 +1,4 @@
egg_group_id,language_id,name egg_group_id,local_language_id,name
1,9,Monster 1,9,Monster
2,9,Water 1 2,9,Water 1
3,9,Bug 3,9,Bug

1 egg_group_id language_id local_language_id name
2 1 9 Monster
3 2 9 Water 1
4 3 9 Bug

View file

@ -1,4 +1,4 @@
encounter_condition_id,language_id,name encounter_condition_id,local_language_id,name
1,9,Swarm 1,9,Swarm
2,9,Time of day 2,9,Time of day
3,9,PokeRadar 3,9,PokeRadar

1 encounter_condition_id language_id local_language_id name
2 1 9 9 Swarm
3 2 9 9 Time of day
4 3 9 9 PokeRadar

View file

@ -1,4 +1,4 @@
encounter_condition_value_id,language_id,name encounter_condition_value_id,local_language_id,name
1,9,During a swarm 1,9,During a swarm
2,9,Not during a swarm 2,9,Not during a swarm
3,9,In the morning 3,9,In the morning

1 encounter_condition_value_id language_id local_language_id name
2 1 9 During a swarm
3 2 9 Not during a swarm
4 3 9 In the morning

View file

@ -1,4 +1,4 @@
encounter_terrain_id,language_id,name encounter_terrain_id,local_language_id,name
1,9,Walking in tall grass or a cave 1,9,Walking in tall grass or a cave
2,9,Fishing with an Old Rod 2,9,Fishing with an Old Rod
3,9,Fishing with a Good Rod 3,9,Fishing with a Good Rod

1 encounter_terrain_id language_id local_language_id name
2 1 9 9 Walking in tall grass or a cave
3 2 9 9 Fishing with an Old Rod
4 3 9 9 Fishing with a Good Rod

View file

@ -1,4 +1,4 @@
evolution_trigger_id,language_id,name evolution_trigger_id,local_language_id,name
1,9,Level_up 1,9,Level_up
2,9,Trade 2,9,Trade
3,9,Use_item 3,9,Use_item

1 evolution_trigger_id language_id local_language_id name
2 1 9 9 Level_up
3 2 9 9 Trade
4 3 9 9 Use_item

View file

@ -1,4 +1,4 @@
generation_id,language_id,name generation_id,local_language_id,name
1,9,Generation I 1,9,Generation I
2,9,Generation II 2,9,Generation II
3,9,Generation III 3,9,Generation III

1 generation_id language_id local_language_id name
2 1 9 9 Generation I
3 2 9 9 Generation II
4 3 9 9 Generation III

View file

@ -1,4 +1,4 @@
growth_rate_id,language_id,name growth_rate_id,local_language_id,name
1,9,slow 1,9,slow
2,9,medium 2,9,medium
3,9,fast 3,9,fast

1 growth_rate_id language_id local_language_id name
2 1 9 9 slow
3 2 9 9 medium
4 3 9 9 fast

View file

@ -1,4 +1,4 @@
item_category_id,language_id,name item_category_id,local_language_id,name
1,9,Stat boosts 1,9,Stat boosts
2,9,Effort drop 2,9,Effort drop
3,9,Medicine 3,9,Medicine

1 item_category_id language_id local_language_id name
2 1 9 Stat boosts
3 2 9 Effort drop
4 3 9 Medicine

View file

@ -1,4 +1,4 @@
item_flag_id,language_id,name,description item_flag_id,local_language_id,name,description
1,9,Countable,Has a count in the bag 1,9,Countable,Has a count in the bag
2,9,Consumable,Consumed when used 2,9,Consumable,Consumed when used
3,9,Usable_overworld,Usable outside battle 3,9,Usable_overworld,Usable outside battle

1 item_flag_id language_id local_language_id name description
2 1 9 Countable Has a count in the bag
3 2 9 Consumable Consumed when used
4 3 9 Usable_overworld Usable outside battle

View file

@ -1,4 +1,4 @@
item_fling_effect_id,language_id,effect item_fling_effect_id,local_language_id,effect
1,9,Badly poisons the target. 1,9,Badly poisons the target.
2,9,Burns the target. 2,9,Burns the target.
3,9,Immediately activates the berry's effect on the target. 3,9,Immediately activates the berry's effect on the target.

1 item_fling_effect_id language_id local_language_id effect
2 1 9 9 Badly poisons the target.
3 2 9 9 Burns the target.
4 3 9 9 Immediately activates the berry's effect on the target.

View file

@ -1,4 +1,4 @@
item_id,language_id,name item_id,local_language_id,name
1,1,マスターボール 1,1,マスターボール
1,5,Master Ball 1,5,Master Ball
1,6,Meisterball 1,6,Meisterball

1 item_id language_id local_language_id name
2 1 1 マスターボール
3 1 5 Master Ball
4 1 6 Meisterball

View file

@ -1,4 +1,4 @@
item_pocket_id,language_id,name item_pocket_id,local_language_id,name
1,9,Items 1,9,Items
2,9,Medicine 2,9,Medicine
3,9,Poké Balls 3,9,Poké Balls

1 item_pocket_id language_id local_language_id name
2 1 9 Items
3 2 9 Medicine
4 3 9 Poké Balls

View file

@ -1,4 +1,4 @@
item_id,language_id,short_effect,effect item_id,local_language_id,short_effect,effect
1,9,,In battle: Captures one Pokémon without fail. Has a capture rate of 255. 1,9,,In battle: Captures one Pokémon without fail. Has a capture rate of 255.
2,9,,In battle: Attempts to capture one Pokémon. Has a capture rate of 2. 2,9,,In battle: Attempts to capture one Pokémon. Has a capture rate of 2.
3,9,,In battle: Attempts to capture one Pokémon. Has a capture rate of 1.5. 3,9,,In battle: Attempts to capture one Pokémon. Has a capture rate of 1.5.

1 item_id language_id local_language_id short_effect effect
2 1 9 In battle: Captures one Pokémon without fail. Has a capture rate of 255.
3 2 9 In battle: Attempts to capture one Pokémon. Has a capture rate of 2.
4 3 9 In battle: Attempts to capture one Pokémon. Has a capture rate of 1.5.

View file

@ -1,4 +1,4 @@
lang_id,language_id,name language_id,local_language_id,name
1,9,Japanese 1,9,Japanese
2,9,Official Roomaji 2,9,Official Roomaji
3,9,Korean 3,9,Korean

1 lang_id language_id local_language_id name
2 1 9 1 9 Japanese
3 2 9 2 9 Official Roomaji
4 3 9 3 9 Korean

View file

@ -1,4 +1,4 @@
location_area_id,language_id,name location_area_id,local_language_id,name
1,9, 1,9,
2,9, 2,9,
3,9, 3,9,

1 location_area_id language_id local_language_id name
2 1 9
3 2 9
4 3 9

View file

@ -1,4 +1,4 @@
location_id,language_id,name location_id,local_language_id,name
1,9,Canalave City 1,9,Canalave City
2,9,Eterna City 2,9,Eterna City
3,9,Pastoria City 3,9,Pastoria City

1 location_id language_id local_language_id name
2 1 9 Canalave City
3 2 9 Eterna City
4 3 9 Pastoria City

View file

@ -1,4 +1,4 @@
move_battle_style_id,language_id,name move_battle_style_id,local_language_id,name
1,9,Attack 1,9,Attack
2,9,Defense 2,9,Defense
3,9,Support 3,9,Support

1 move_battle_style_id language_id local_language_id name
2 1 9 9 Attack
3 2 9 9 Defense
4 3 9 9 Support

View file

@ -1,4 +1,4 @@
move_damage_class_id,language_id,name,description move_damage_class_id,local_language_id,name,description
1,9,non-damaging,No damage 1,9,non-damaging,No damage
2,9,physical,"Physical damage, controlled by Attack and Defense" 2,9,physical,"Physical damage, controlled by Attack and Defense"
3,9,special,"Special damage, controlled by Special Attack and Special Defense" 3,9,special,"Special damage, controlled by Special Attack and Special Defense"

1 move_damage_class_id language_id local_language_id name description
2 1 9 9 non-damaging No damage
3 2 9 9 physical Physical damage, controlled by Attack and Defense
4 3 9 9 special Special damage, controlled by Special Attack and Special Defense

View file

@ -1,4 +1,4 @@
move_effect_category_id,language_id,name move_effect_category_id,local_language_id,name
1,9,Regular damage 1,9,Regular damage
2,9,Power varies 2,9,Power varies
3,9,Special damage 3,9,Special damage

1 move_effect_category_id language_id local_language_id name
2 1 9 Regular damage
3 2 9 Power varies
4 3 9 Special damage

View file

@ -1,4 +1,4 @@
move_effect_changelog_id,language_id,effect move_effect_changelog_id,local_language_id,effect
1,9,"Halves the target's [Defense]{mechanic} for damage calculation, which is similar to doubling the attack's [power]{mechanic}." 1,9,"Halves the target's [Defense]{mechanic} for damage calculation, which is similar to doubling the attack's [power]{mechanic}."
2,9,Hits Pokémon under the effects of [Dig]{move} and [Fly]{move}. 2,9,Hits Pokémon under the effects of [Dig]{move} and [Fly]{move}.
3,9,Does nothing in trainer battles. 3,9,Does nothing in trainer battles.

1 move_effect_changelog_id language_id local_language_id effect
2 1 9 Halves the target's [Defense]{mechanic} for damage calculation, which is similar to doubling the attack's [power]{mechanic}.
3 2 9 Hits Pokémon under the effects of [Dig]{move} and [Fly]{move}.
4 3 9 Does nothing in trainer battles.

View file

@ -1,4 +1,4 @@
move_effect_id,language_id,short_effect,effect move_effect_id,local_language_id,short_effect,effect
1,9,Inflicts regular damage with no additional effect.,Inflicts [regular damage]{mechanic}. 1,9,Inflicts regular damage with no additional effect.,Inflicts [regular damage]{mechanic}.
2,9,Puts the target to sleep.,Puts the target to [sleep]{mechanic}. 2,9,Puts the target to sleep.,Puts the target to [sleep]{mechanic}.
3,9,Has a $effect_chance% chance to poison the target.,Inflicts [regular damage]{mechanic}. Has a $effect_chance% chance to [poison]{mechanic} the target. 3,9,Has a $effect_chance% chance to poison the target.,Inflicts [regular damage]{mechanic}. Has a $effect_chance% chance to [poison]{mechanic} the target.

1 move_effect_id language_id local_language_id short_effect effect
2 1 9 Inflicts regular damage with no additional effect. Inflicts [regular damage]{mechanic}.
3 2 9 Puts the target to sleep. Puts the target to [sleep]{mechanic}.
4 3 9 Has a $effect_chance% chance to poison the target. Inflicts [regular damage]{mechanic}. Has a $effect_chance% chance to [poison]{mechanic} the target.

View file

@ -1,4 +1,4 @@
move_flag_type_id,language_id,name,description move_flag_type_id,local_language_id,name,description
1,9,Makes contact,"User touches the target. This triggers some abilities (e.g., [Static]{ability}) and items (e.g., [Sticky Barb]{item})." 1,9,Makes contact,"User touches the target. This triggers some abilities (e.g., [Static]{ability}) and items (e.g., [Sticky Barb]{item})."
2,9,Has a charging turn,This move has a charging turn that can be skipped with a [Power Herb]{item}. 2,9,Has a charging turn,This move has a charging turn that can be skipped with a [Power Herb]{item}.
3,9,Must recharge,"The turn after this move is used, the Pokémon's action is skipped so it can recharge." 3,9,Must recharge,"The turn after this move is used, the Pokémon's action is skipped so it can recharge."

1 move_flag_type_id language_id local_language_id name description
2 1 9 Makes contact User touches the target. This triggers some abilities (e.g., [Static]{ability}) and items (e.g., [Sticky Barb]{item}).
3 2 9 Has a charging turn This move has a charging turn that can be skipped with a [Power Herb]{item}.
4 3 9 Must recharge The turn after this move is used, the Pokémon's action is skipped so it can recharge.

View file

@ -1,4 +1,4 @@
move_meta_ailment_id,language_id,name move_meta_ailment_id,local_language_id,name
-1,9,???? -1,9,????
0,9,none 0,9,none
1,9,Paralysis 1,9,Paralysis

1 move_meta_ailment_id language_id local_language_id name
2 -1 9 ????
3 0 9 none
4 1 9 Paralysis

View file

@ -1,4 +1,4 @@
move_meta_category_id,language_id,description move_meta_category_id,local_language_id,description
0,9,Inflicts damage 0,9,Inflicts damage
1,9,No damage; inflicts status ailment 1,9,No damage; inflicts status ailment
2,9,No damage; lowers target's stats or raises user's stats 2,9,No damage; lowers target's stats or raises user's stats

1 move_meta_category_id language_id local_language_id description
2 0 9 Inflicts damage
3 1 9 No damage; inflicts status ailment
4 2 9 No damage; lowers target's stats or raises user's stats

View file

@ -1,4 +1,4 @@
move_id,language_id,name move_id,local_language_id,name
1,1,はたく 1,1,はたく
1,5,Écras'Face 1,5,Écras'Face
1,6,Pfund 1,6,Pfund

1 move_id language_id local_language_id name
2 1 1 はたく
3 1 5 Écras'Face
4 1 6 Pfund

View file

@ -1,4 +1,4 @@
move_target_id,language_id,name,description move_target_id,local_language_id,name,description
1,9,Specific move,One specific move. How this move is chosen depends upon on the move being used. 1,9,Specific move,One specific move. How this move is chosen depends upon on the move being used.
2,9,Selected Pokémon,"One other Pokémon on the field, selected by the trainer. Stolen moves reuse the same target." 2,9,Selected Pokémon,"One other Pokémon on the field, selected by the trainer. Stolen moves reuse the same target."
3,9,Ally,The user's ally (if any). 3,9,Ally,The user's ally (if any).

1 move_target_id language_id local_language_id name description
2 1 9 Specific move One specific move. How this move is chosen depends upon on the move being used.
3 2 9 Selected Pokémon One other Pokémon on the field, selected by the trainer. Stolen moves reuse the same target.
4 3 9 Ally The user's ally (if any).

View file

@ -1,4 +1,4 @@
nature_id,language_id,name nature_id,local_language_id,name
1,1,がんばりや 1,1,がんばりや
1,5,Hardi 1,5,Hardi
1,6,Robust 1,6,Robust

1 nature_id language_id local_language_id name
2 1 1 がんばりや
3 1 5 Hardi
4 1 6 Robust

View file

@ -1,4 +1,4 @@
pokeathlon_stat_id,language_id,name pokeathlon_stat_id,local_language_id,name
1,9,Speed 1,9,Speed
2,9,Power 2,9,Power
3,9,Skill 3,9,Skill

1 pokeathlon_stat_id language_id local_language_id name
2 1 9 9 Speed
3 2 9 9 Power
4 3 9 9 Skill

View file

@ -1,4 +1,4 @@
pokedex_id,language_id,name,description pokedex_id,local_language_id,name,description
1,9,National,Entire National dex 1,9,National,Entire National dex
2,9,Kanto,Red/Blue/Yellow Kanto dex 2,9,Kanto,Red/Blue/Yellow Kanto dex
3,9,Original Johto,"Gold/Silver/Crystal Johto dex—called the ""New"" Pokédex in-game" 3,9,Original Johto,"Gold/Silver/Crystal Johto dex—called the ""New"" Pokédex in-game"

1 pokedex_id language_id local_language_id name description
2 1 9 National Entire National dex
3 2 9 Kanto Red/Blue/Yellow Kanto dex
4 3 9 Original Johto Gold/Silver/Crystal Johto dex—called the "New" Pokédex in-game

View file

@ -1,4 +1,4 @@
pokemon_color_id,language_id,name pokemon_color_id,local_language_id,name
1,9,Black 1,9,Black
2,9,Blue 2,9,Blue
3,9,Brown 3,9,Brown

1 pokemon_color_id language_id local_language_id name
2 1 9 Black
3 2 9 Blue
4 3 9 Brown

View file

@ -1,4 +1,4 @@
pokemon_form_group_id,language_id,term,description pokemon_form_group_id,local_language_id,term,description
172,9,,"Spiky-eared Pichu can only be received by taking the shiny Pichu from an official promotion to [Celebi]{pokemon}'s shrine in [Ilex Forest]{location}. Spiky-eared Pichu is always female, cannot evolve, and cannot be taken into the Wi-Fi Club or the Union Room, but is otherwise a normal Pichu." 172,9,,"Spiky-eared Pichu can only be received by taking the shiny Pichu from an official promotion to [Celebi]{pokemon}'s shrine in [Ilex Forest]{location}. Spiky-eared Pichu is always female, cannot evolve, and cannot be taken into the Wi-Fi Club or the Union Room, but is otherwise a normal Pichu."
201,9,,Forms only affect appearance. A form is determined at random before a wild encounter and cannot be changed. 201,9,,Forms only affect appearance. A form is determined at random before a wild encounter and cannot be changed.
351,9,Form,"Form changes along with type to match the [weather]{mechanic} in battle, due to [Forecast]{ability}. Castform is always in its normal form outside of battle, regardless of weather." 351,9,Form,"Form changes along with type to match the [weather]{mechanic} in battle, due to [Forecast]{ability}. Castform is always in its normal form outside of battle, regardless of weather."

1 pokemon_form_group_id language_id local_language_id term description
2 172 9 Spiky-eared Pichu can only be received by taking the shiny Pichu from an official promotion to [Celebi]{pokemon}'s shrine in [Ilex Forest]{location}. Spiky-eared Pichu is always female, cannot evolve, and cannot be taken into the Wi-Fi Club or the Union Room, but is otherwise a normal Pichu.
3 201 9 Forms only affect appearance. A form is determined at random before a wild encounter and cannot be changed.
4 351 9 Form Form changes along with type to match the [weather]{mechanic} in battle, due to [Forecast]{ability}. Castform is always in its normal form outside of battle, regardless of weather.

View file

@ -1,4 +1,4 @@
pokemon_form_id,language_id,name pokemon_form_id,local_language_id,name
1,9, 1,9,
2,9, 2,9,
3,9, 3,9,

1 pokemon_form_id language_id local_language_id name
2 1 9
3 2 9
4 3 9

View file

@ -1,4 +1,4 @@
pokemon_habitat_id,language_id,name pokemon_habitat_id,local_language_id,name
1,9,cave 1,9,cave
2,9,forest 2,9,forest
3,9,grassland 3,9,grassland

1 pokemon_habitat_id language_id local_language_id name
2 1 9 cave
3 2 9 forest
4 3 9 grassland

View file

@ -1,4 +1,4 @@
pokemon_move_method_id,language_id,name,description pokemon_move_method_id,local_language_id,name,description
1,9,Level up,Learned when a Pokémon reaches a certain level. 1,9,Level up,Learned when a Pokémon reaches a certain level.
2,9,Egg,"Appears on a newly-hatched Pokémon, if the father had the same move." 2,9,Egg,"Appears on a newly-hatched Pokémon, if the father had the same move."
3,9,Tutor,Can be taught at any time by an NPC. 3,9,Tutor,Can be taught at any time by an NPC.

1 pokemon_move_method_id language_id local_language_id name description
2 1 9 Level up Learned when a Pokémon reaches a certain level.
3 2 9 Egg Appears on a newly-hatched Pokémon, if the father had the same move.
4 3 9 Tutor Can be taught at any time by an NPC.

View file

@ -1,4 +1,4 @@
pokemon_id,language_id,name,species pokemon_id,local_language_id,name,species
1,1,フシギダネ, 1,1,フシギダネ,
1,2,Fushigidane, 1,2,Fushigidane,
1,3,이상해씨, 1,3,이상해씨,

1 pokemon_id language_id local_language_id name species
2 1 1 フシギダネ
3 1 2 Fushigidane
4 1 3 이상해씨

View file

@ -1,4 +1,4 @@
pokemon_shape_id,language_id,name,awesome_name pokemon_shape_id,local_language_id,name,awesome_name
1,9,Ball,Pomaceous 1,9,Ball,Pomaceous
2,9,Squiggle,Caudal 2,9,Squiggle,Caudal
3,9,Fish,Ichthyic 3,9,Fish,Ichthyic

1 pokemon_shape_id language_id local_language_id name awesome_name
2 1 9 Ball Pomaceous
3 2 9 Squiggle Caudal
4 3 9 Fish Ichthyic

View file

@ -1,4 +1,4 @@
region_id,language_id,name region_id,local_language_id,name
1,9,Kanto 1,9,Kanto
2,9,Johto 2,9,Johto
3,9,Hoenn 3,9,Hoenn

1 region_id language_id local_language_id name
2 1 9 9 Kanto
3 2 9 9 Johto
4 3 9 9 Hoenn

View file

@ -1,4 +1,4 @@
stat_hint_id,language_id,message stat_hint_id,local_language_id,message
1,9,Loves to eat 1,9,Loves to eat
2,9,Proud of its power 2,9,Proud of its power
3,9,Sturdy body 3,9,Sturdy body

1 stat_hint_id language_id local_language_id message
2 1 9 Loves to eat
3 2 9 Proud of its power
4 3 9 Sturdy body

View file

@ -1,4 +1,4 @@
stat_id,language_id,name stat_id,local_language_id,name
1,9,HP 1,9,HP
2,9,Attack 2,9,Attack
3,9,Defense 3,9,Defense

1 stat_id language_id local_language_id name
2 1 9 HP
3 2 9 Attack
4 3 9 Defense

View file

@ -1,4 +1,4 @@
super_contest_effect_id,language_id,flavor_text super_contest_effect_id,local_language_id,flavor_text
1,9,Enables the user to perform first in the next turn. 1,9,Enables the user to perform first in the next turn.
2,9,Enables the user to perform last in the next turn. 2,9,Enables the user to perform last in the next turn.
4,9,Earn +2 if the Judge's Voltage goes up. 4,9,Earn +2 if the Judge's Voltage goes up.

1 super_contest_effect_id language_id local_language_id flavor_text
2 1 9 Enables the user to perform first in the next turn.
3 2 9 Enables the user to perform last in the next turn.
4 4 9 Earn +2 if the Judge's Voltage goes up.

View file

@ -1,4 +1,4 @@
type_id,language_id,name type_id,local_language_id,name
1,1,ノーマル 1,1,ノーマル
1,5,Normal 1,5,Normal
1,6,Normal 1,6,Normal

1 type_id language_id local_language_id name
2 1 1 ノーマル
3 1 5 Normal
4 1 6 Normal

View file

@ -1,4 +1,4 @@
version_id,language_id,name version_id,local_language_id,name
1,9,Red 1,9,Red
2,9,Blue 2,9,Blue
3,9,Yellow 3,9,Yellow

1 version_id language_id local_language_id name
2 1 9 Red
3 2 9 Blue
4 3 9 Yellow

View file

@ -17,7 +17,6 @@ def create_translation_table(_table_name, foreign_class, relation_name,
`foreign_class` must have a `__singlename__`, currently only used to create `foreign_class` must have a `__singlename__`, currently only used to create
the name of the foreign key column. the name of the foreign key column.
TODO remove this requirement
Also supports the notion of a default language, which is attached to the Also supports the notion of a default language, which is attached to the
session. This is English by default, for historical and practical reasons. session. This is English by default, for historical and practical reasons.
@ -69,21 +68,16 @@ TODO remove this requirement
# want to create tables entirely separate from the pokedex metadata # want to create tables entirely separate from the pokedex metadata
foreign_key_name = foreign_class.__singlename__ + '_id' foreign_key_name = foreign_class.__singlename__ + '_id'
# A foreign key "language_id" will clash with the language_id we naturally
# put in every table. Rename it something else
if foreign_key_name == 'language_id':
# TODO change language_id below instead and rename this
foreign_key_name = 'lang_id'
Translations = type(_table_name, (object,), { Translations = type(_table_name, (object,), {
'_language_identifier': association_proxy('language', 'identifier'), '_language_identifier': association_proxy('local_language', 'identifier'),
}) })
# Create the table object # Create the table object
table = Table(_table_name, foreign_class.__table__.metadata, table = Table(_table_name, foreign_class.__table__.metadata,
Column(foreign_key_name, Integer, ForeignKey(foreign_class.id), Column(foreign_key_name, Integer, ForeignKey(foreign_class.id),
primary_key=True, nullable=False), primary_key=True, nullable=False),
Column('language_id', Integer, ForeignKey(language_class.id), Column('local_language_id', Integer, ForeignKey(language_class.id),
primary_key=True, nullable=False), primary_key=True, nullable=False),
) )
Translations.__table__ = table Translations.__table__ = table
@ -99,14 +93,11 @@ TODO remove this requirement
# Construct ye mapper # Construct ye mapper
mapper(Translations, table, properties={ mapper(Translations, table, properties={
# TODO change to foreign_id 'foreign_id': synonym(foreign_key_name),
'object_id': synonym(foreign_key_name), 'local_language': relationship(language_class,
# TODO change this as appropriate primaryjoin=table.c.local_language_id == language_class.id,
'language': relationship(language_class,
primaryjoin=table.c.language_id == language_class.id,
lazy='joined', lazy='joined',
innerjoin=True), innerjoin=True),
# TODO does this need to join to the original table?
}) })
# Add full-table relations to the original class # Add full-table relations to the original class
@ -114,8 +105,8 @@ TODO remove this requirement
setattr(foreign_class, relation_name + '_table', Translations) setattr(foreign_class, relation_name + '_table', Translations)
# Foo.bars # Foo.bars
setattr(foreign_class, relation_name, relationship(Translations, setattr(foreign_class, relation_name, relationship(Translations,
primaryjoin=foreign_class.id == Translations.object_id, primaryjoin=foreign_class.id == Translations.foreign_id,
collection_class=attribute_mapped_collection('language'), collection_class=attribute_mapped_collection('local_language'),
# TODO # TODO
lazy='select', lazy='select',
)) ))
@ -129,8 +120,8 @@ TODO remove this requirement
language_class_a = aliased(language_class) language_class_a = aliased(language_class)
setattr(foreign_class, local_relation_name, relationship(Translations, setattr(foreign_class, local_relation_name, relationship(Translations,
primaryjoin=and_( primaryjoin=and_(
foreign_class.id == Translations.object_id, foreign_class.id == Translations.foreign_id,
Translations.language_id == select( Translations.local_language_id == select(
[language_class_a.id], [language_class_a.id],
language_class_a.identifier == language_class_a.identifier ==
bindparam('_default_language', required=True), bindparam('_default_language', required=True),
@ -152,7 +143,7 @@ TODO remove this requirement
# these are passed as *args anyway # these are passed as *args anyway
def creator(language, value): def creator(language, value):
row = Translations() row = Translations()
row.language = language row.local_language = language
setattr(row, name, value) setattr(row, name, value)
return row return row
setattr(foreign_class, name + '_map', setattr(foreign_class, name + '_map',

View file

@ -264,7 +264,7 @@ class EggGroup(TableBase):
create_translation_table('egg_group_prose', EggGroup, 'names', create_translation_table('egg_group_prose', EggGroup, 'names',
name = Column(Unicode(16), nullable=False, index=True, name = Column(Unicode(16), nullable=False, index=True,
info=dict(description="The name", format='plaintext', official=False)), info=dict(description="The name", format='plaintext', official=True)),
) )
class Encounter(TableBase): class Encounter(TableBase):
@ -1557,7 +1557,7 @@ class SuperContestEffect(TableBase):
create_translation_table('super_contest_effect_prose', SuperContestEffect, 'prose', create_translation_table('super_contest_effect_prose', SuperContestEffect, 'prose',
flavor_text = Column(Unicode(64), nullable=False, flavor_text = Column(Unicode(64), nullable=False,
info=dict(description=u"A description of the effect.", format='plaintext')), info=dict(description=u"A description of the effect.", format='plaintext', official=True)),
) )