- Posts: 71
- Thank you received: 0
Done withbabynus wrote:
Update /css/projectorIcon.cssAnd how add an icone in the menu ?
I have created iconCountry16.png, iconCountry22.png and iconCountry32.png in view/css/images, but noting appears…
.iconCountry32 { background-image: url(images/iconCountry32.png); background-repeat: no-repeat; width: 32px; height: 32px; }
.iconCountry22 { background-image: url(images/iconCountry22.png); background-repeat: no-repeat; width: 22px; height: 22px; }
.iconCountry16 { background-image: url(images/iconCountry16.png); background-repeat: no-repeat; width: 16px; height: 16px; }
I don’t understand.babynus wrote:
You complicated much too much, and will have to code correct list.there as many lines per country as number of languages used. At now, two :
Country code 'de' is for Germany, but with two lines (id, code, lang, name) :
121 de en Germany
122 de fr Allemagne
i.e. country is identified by code, not by line id.
In future, there could be added also, p.e.
487 de de Deutchland
503 de nl Duitsland
733 de es Alemania
999 de gr Γερµανία
etc.
Just single list with translatable name would be easier : just have to define field $_isTranslatable in the class
CREATE TABLE IF NOT EXISTS `currency` (
`id` int(12) unsigned NOT NULL AUTO_INCREMENT,
`code` varchar(3) DEFAULT NULL,
`name` varchar(32) DEFAULT NULL,
`idle` int(1) unsigned DEFAULT '0',
PRIMARY KEY (`id`),
KEY `currencyCode` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
INSERT INTO `currency` VALUES(1, 'EUR', 'Euro', 0);
INSERT INTO `currency` VALUES(2, 'USD', 'US Dollars', 0);
INSERT INTO `currency` VALUES(3, 'AUD', 'Australian Dollar', 0);
INSERT INTO `currency` VALUES(4, 'CAD', 'Canadian Dollar', 0);
INSERT INTO `currency` VALUES(5, 'CHF', 'Swiss Franc', 0);
INSERT INTO `currency` VALUES(6, 'GBP', 'British Pounds', 0);
INSERT INTO `currency` VALUES(7, 'JPY', 'Japanese Yen', 0);
INSERT INTO `currency` VALUES(8, 'SEK', 'Swedish Krona', 0);
ALTER TABLE client ADD currency int(12) unsigned DEFAULT '0' ;
public $idCurrency;
Please Log in or Create an account to join the conversation.
Seems correct.… but still nothing, even after close/reopne session.
(no error in data, pictures OK, all checked)
YesWhere are the translations, then ? Must fill lang.js files ?
ProfileWhat values list table would be a good sample ?
db field should be named idCurrency, not currency.Something is wrong, but models viewed seem similar… WTF ?
Please Log in or Create an account to join the conversation.
Oops…babynus wrote:
Seems correct.… but still nothing, even after close/reopne session.
(no error in data, pictures OK, all checked)
No idea why it does not work.
For countries, this will be a lot (around 200 countries !)babynus wrote:
YesWhere are the translations, then ? Must fill lang.js files ?
OK. Have a look.babynus wrote:
ProfileWhat values list table would be a good sample ?
Ah, OK. Changed, and… It works!babynus wrote:
db field should be named idCurrency, not currency.Something is wrong, but models viewed seem similar… WTF ?
Please Log in or Create an account to join the conversation.
Appeared next day, after shutdown computer and reboot.Jean-Luc wrote:
Oops…babynus wrote:
Seems correct.… but still nothing, even after close/reopne session.
(no error in data, pictures OK, all checked)
No idea why it does not work.
Too bad, but not blocking, so to be in-depth examinated later.
Done, all is now O.K.Jean-Luc wrote:
OK. Have a look.babynus wrote:
ProfileWhat values list table would be a good sample ?
Not $_isTranslatable, but $_isNameTranslatable, no? Or $_isXxxxTranslatable?
I think I will first test with 'currency' table.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
En poursuivant votre navigation, vous acceptez le dépôt de cookies tiers destinés au bon fonctionnement et à la sécurisation du site (gestion de session, reCaptcha) et à une analyse statistique anonymisée des accès sur notre site (Google Analytics). Si vous vous inscrivez, les informations que vous fournirez ne seront jamais divulguées à un tiers sous quelque forme que ce soit. En savoir plus
Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.
Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.