Add french lang, item name and gui can be translate
This commit is contained in:
parent
5e24e7456a
commit
fd72f700f3
|
@ -11,6 +11,7 @@ import net.minecraft.util.ResourceLocation;
|
||||||
import org.lwjgl.opengl.GL11;
|
import org.lwjgl.opengl.GL11;
|
||||||
import xamora.gp_dbc.utils.DrawGui;
|
import xamora.gp_dbc.utils.DrawGui;
|
||||||
|
|
||||||
|
import static net.minecraft.util.StatCollector.translateToLocal;
|
||||||
import static xamora.gp_dbc.gui.CriminalTracker.GuiCriminalTracker.*;
|
import static xamora.gp_dbc.gui.CriminalTracker.GuiCriminalTracker.*;
|
||||||
|
|
||||||
public class GuiButtonCriminalTracker extends GuiButton {
|
public class GuiButtonCriminalTracker extends GuiButton {
|
||||||
|
@ -86,8 +87,8 @@ public class GuiButtonCriminalTracker extends GuiButton {
|
||||||
|
|
||||||
DrawGui.drawLimited(mc.fontRenderer, criminal.getName(), xPosition + 3, yPosition + 6, width - 5, 8, 0xff000000);
|
DrawGui.drawLimited(mc.fontRenderer, criminal.getName(), xPosition + 3, yPosition + 6, width - 5, 8, 0xff000000);
|
||||||
if (pos == null) {
|
if (pos == null) {
|
||||||
DrawGui.drawLimited(mc.fontRenderer, "No Position", xPosition + 3, yPosition + 16, width - 5, 6, 0xff000000);
|
DrawGui.drawLimited(mc.fontRenderer, translateToLocal("gui.criminal.position"), xPosition + 3, yPosition + 16, width - 5, 6, 0xff000000);
|
||||||
DrawGui.drawLimitedMin(mc.fontRenderer, "rate: " + rate, xPosition + 3, yPosition + 22, width - 5, 5, 0.55, 0.8, 0xff000000);
|
DrawGui.drawLimitedMin(mc.fontRenderer, translateToLocal("gui.criminal.rate") + " " + rate, xPosition + 3, yPosition + 22, width - 5, 5, 0.55, 0.8, 0xff000000);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
DrawGui.drawLimitedMin(mc.fontRenderer, "x:" + pos.x, xPosition + 3, yPosition + 16, width - 5, 5, 0.6, 0.8, 0xff000000);
|
DrawGui.drawLimitedMin(mc.fontRenderer, "x:" + pos.x, xPosition + 3, yPosition + 16, width - 5, 5, 0.6, 0.8, 0xff000000);
|
||||||
|
@ -99,13 +100,14 @@ public class GuiButtonCriminalTracker extends GuiButton {
|
||||||
DrawGui.drawLimited(mc.fontRenderer, TimeUtils.getTimeDays((System.currentTimeMillis() - criminal.getLastPosTime()) / 1000L), xPosition + 3, yPosition + 36, width - 5, 5, 0xff000000);
|
DrawGui.drawLimited(mc.fontRenderer, TimeUtils.getTimeDays((System.currentTimeMillis() - criminal.getLastPosTime()) / 1000L), xPosition + 3, yPosition + 36, width - 5, 5, 0xff000000);
|
||||||
|
|
||||||
if (flag_last_time_pos) {
|
if (flag_last_time_pos) {
|
||||||
|
int width_text = mc.fontRenderer.getStringWidth(translateToLocal("gui.criminal.last_position")) / 2;
|
||||||
GL11.glTranslated(0, 0, 1);
|
GL11.glTranslated(0, 0, 1);
|
||||||
drawRect(x, y, x + width, y - 7, 0xf0ffffff);
|
drawRect(x, y, x + width_text, y - 7, 0xf0ffffff);
|
||||||
DrawGui.drawLimited(mc.fontRenderer, "last time position", x + 1, y - 6, width - 1, 5, 0xff000000);
|
DrawGui.drawLimited(mc.fontRenderer, translateToLocal("gui.criminal.last_position"), x + 1, y - 6, width_text - 1, 5, 0xff000000);
|
||||||
GL11.glTranslated(0, 0, -1);
|
GL11.glTranslated(0, 0, -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
DrawGui.drawLimitedMin(mc.fontRenderer, "rate: " + rate, xPosition + 3, yPosition + 41, width - 5, 5, 0.55, 0.8, 0xff000000);
|
DrawGui.drawLimitedMin(mc.fontRenderer, translateToLocal("gui.criminal.rate") + " " + rate, xPosition + 3, yPosition + 41, width - 5, 5, 0.55, 0.8, 0xff000000);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Test draw Scissor
|
// Test draw Scissor
|
||||||
|
|
|
@ -8,6 +8,7 @@ import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.util.ResourceLocation;
|
import net.minecraft.util.ResourceLocation;
|
||||||
import org.lwjgl.opengl.GL11;
|
import org.lwjgl.opengl.GL11;
|
||||||
|
|
||||||
|
import static net.minecraft.util.StatCollector.translateToLocal;
|
||||||
import static xamora.gp_dbc.gui.JailManager.GuiJailManager.*;
|
import static xamora.gp_dbc.gui.JailManager.GuiJailManager.*;
|
||||||
import static xamora.gp_dbc.utils.DrawGui.drawLimited;
|
import static xamora.gp_dbc.utils.DrawGui.drawLimited;
|
||||||
|
|
||||||
|
@ -75,7 +76,7 @@ public class GuiButtonJailManager extends GuiButton {
|
||||||
} else {
|
} else {
|
||||||
drawRect(xPosition, yPosition, xPosition + width, yPosition + height, 0xffffffff);
|
drawRect(xPosition, yPosition, xPosition + width, yPosition + height, 0xffffffff);
|
||||||
}
|
}
|
||||||
drawLimited(mc.fontRenderer, "Cell #" + cell.getId() + " " + cell.getInmates().size() + "/" + cell.getPlace(), xPosition, yPosition + 1, width - 1, height, 0xff000000);
|
drawLimited(mc.fontRenderer, translateToLocal("gui.jail.cell") + "#" + cell.getId() + " " + cell.getInmates().size() + "/" + cell.getPlace(), xPosition, yPosition + 1, width - 1, height, 0xff000000);
|
||||||
|
|
||||||
GL11.glDisable(GL11.GL_SCISSOR_TEST);
|
GL11.glDisable(GL11.GL_SCISSOR_TEST);
|
||||||
GL11.glPopMatrix();
|
GL11.glPopMatrix();
|
||||||
|
|
|
@ -15,21 +15,30 @@ success.in_jail=Player put in jail for
|
||||||
msg.inmate_going_to_jail=You are in jail for
|
msg.inmate_going_to_jail=You are in jail for
|
||||||
success.out_of_jail=You are out of jail
|
success.out_of_jail=You are out of jail
|
||||||
error.already_handcuffed=Already handcuffed
|
error.already_handcuffed=Already handcuffed
|
||||||
warning.handcuffing_you=A Galactic Patrol officer is handcuffing you!
|
warning.handcuffing_you=A Galactic Patroller is handcuffing you!
|
||||||
warning.handcuffing_him=You are handcuffing someone
|
warning.handcuffing_him=You are handcuffing someone
|
||||||
success.you_handcuffed_him=You have handcuffed him
|
success.you_handcuffed_him=You have handcuffed him
|
||||||
success.you_are_handcuffed=You are handcuffed, going in %% seconds
|
success.you_are_handcuffed=You are handcuffed, going in %% seconds
|
||||||
warning.going_in_jail=%% second(s) left
|
warning.going_in_jail=%% second(s) left
|
||||||
error.cancel_handcuffing=Handcuffing cancelled
|
error.cancel_handcuffing=Handcuffing cancelled
|
||||||
error.not_galactic_patrol=You are not a Galactic Patrol officer
|
error.not_galactic_patrol=You are not a Galactic Patroller
|
||||||
msg.unhandcuffing_someone=You are unhandcuffing...
|
msg.unhandcuffing_someone=You are unhandcuffing...
|
||||||
msg.unhandcuffing_you=Someone is trying to unhandcuff you...
|
msg.unhandcuffing_you=Someone is trying to unhandcuff you...
|
||||||
msg.stop_unhandcuffing_someone=You stop unhandcuffing someone
|
msg.stop_unhandcuffing_someone=You stop unhandcuffing someone
|
||||||
success.you_are_free=You are free!
|
success.you_are_free=You are free!
|
||||||
error.is_galactic_patrol=He is a Galactic Patrol officer
|
error.is_galactic_patrol=He is a Galactic Patroller
|
||||||
error.is_not_criminal=He isn't a criminal
|
error.is_not_criminal=He isn't a criminal
|
||||||
error.banned_from_galactic_patrol=You are banned from the Galactic Patrol for
|
error.banned_from_galactic_patrol=You are banned from the Galactic Patrol for
|
||||||
error.banned_for_being_bad=For having bad alignment
|
error.banned_for_being_bad=For having bad alignment
|
||||||
error.banned_for_killing_patrolman=For killing another patrolman
|
error.banned_for_killing_patrolman=For killing another patrolman
|
||||||
error.criminal_try_join_galactic_patrol=You are a criminal
|
error.criminal_try_join_galactic_patrol=You are a criminal
|
||||||
error.cant_handcuff_dead=You can't handcuff a death
|
error.cant_handcuff_dead=You can't handcuff a death
|
||||||
|
|
||||||
|
gui.jail.cell=Cell
|
||||||
|
gui.criminal.position=No Position
|
||||||
|
gui.criminal.rate=Crime:
|
||||||
|
gui.criminal.last_position=Time of last position
|
||||||
|
|
||||||
|
item.gp_dbc.gp_handcuff.name=Handcuff
|
||||||
|
item.gp_dbc.jail_manager.name=Jail Manager
|
||||||
|
item.gp_dbc.criminal_tracker.name=Criminal Tracker
|
44
src/main/resources/assets/gp_dbc/lang/fr_FR.lang
Normal file
44
src/main/resources/assets/gp_dbc/lang/fr_FR.lang
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
error.min_align_to_join=Alignement trop faible
|
||||||
|
error.max_align_to_join=Alignement trop élevé
|
||||||
|
success.join_galactic_patrol=Vous avez rejoint la Patrouille Galactique
|
||||||
|
error.join_galactic_patrol=Vous êtes déjà dans la Patrouille Galactique
|
||||||
|
success.leave_galactic_patrol=Vous avez quitté la Patrouille Galactique
|
||||||
|
error.leave_galactic_patrol=Vous n'êtes pas dans la Patrouille Galactique
|
||||||
|
success.add_cell=Vous avez ajouté une nouvelle cellule
|
||||||
|
error.add_cell=Il y a déjà une cellule ici
|
||||||
|
error.definition_exit_pos=Il n'y a pas de position de sortie
|
||||||
|
error.invalid_value_exit_pos=Valeur invalide dans la position de sortie
|
||||||
|
error.unavailable_cell=Il n'y a pas de cellules disponibles
|
||||||
|
error.already_in_jail=Le joueur est déjà en prison
|
||||||
|
error.not_in_jail=Le joueur n'est pas en prison
|
||||||
|
success.in_jail=Le joueur est emprisonné pour
|
||||||
|
msg.inmate_going_to_jail=Vous êtes en prison pour
|
||||||
|
success.out_of_jail=Vous êtes sorti de prison
|
||||||
|
error.already_handcuffed=Déjà menotté
|
||||||
|
warning.handcuffing_you=Un Patrouilleur Galactique est en train de vous menotter !
|
||||||
|
warning.handcuffing_him=Vous êtes en train de menotter quelqu'un
|
||||||
|
success.you_handcuffed_him=Vous l'avez menotté
|
||||||
|
success.you_are_handcuffed=Vous êtes menotté, transfert dans %% secondes
|
||||||
|
warning.going_in_jail=%% seconde(s) restantes
|
||||||
|
error.cancel_handcuffing=Menottage annulé
|
||||||
|
error.not_galactic_patrol=Vous n'êtes pas un Patrouilleur Galactique
|
||||||
|
msg.unhandcuffing_someone=Vous êtes en train d'enlever les menottes...
|
||||||
|
msg.unhandcuffing_you=Quelqu'un essaie de vous enlever les menottes...
|
||||||
|
msg.stop_unhandcuffing_someone=Vous arrêtez d'enlever les menottes de quelqu'un
|
||||||
|
success.you_are_free=Vous êtes libre !
|
||||||
|
error.is_galactic_patrol=C'est un Patrouilleur Galactique
|
||||||
|
error.is_not_criminal=Ce n'est pas un criminel
|
||||||
|
error.banned_from_galactic_patrol=Vous êtes banni de la Patrouille Galactique pour
|
||||||
|
error.banned_for_being_bad=Pour avoir un alignement mauvais
|
||||||
|
error.banned_for_killing_patrolman=Pour avoir tué un autre patrouilleur
|
||||||
|
error.criminal_try_join_galactic_patrol=Vous êtes un criminel
|
||||||
|
error.cant_handcuff_dead=Vous ne pouvez pas menotter un mort
|
||||||
|
|
||||||
|
gui.jail.cell=Prison
|
||||||
|
gui.criminal.position=Aucune Position
|
||||||
|
gui.criminal.rate=Crime:
|
||||||
|
gui.criminal.last_position=Temps de la dernière position
|
||||||
|
|
||||||
|
item.gp_dbc.gp_handcuff.name=Menottes
|
||||||
|
item.gp_dbc.jail_manager.name=Gestionnaire de Prison
|
||||||
|
item.gp_dbc.criminal_tracker.name=Traqueur de Criminels
|
Loading…
Reference in a new issue