Find out if you’re missing translations in Magento

Categorized Under: Magento No Commented

Let your visitors inform you about missing translations! This is for ‘exotic’ languages, from what I’ve seen, the main languages are well covered and up-to-date with new versions of Magento, but who knows…

Edit the file /app/code/core/Mage/Core/Model/Translate.php and go to the protected function _getTranslatedString($text, $code)
On the else branch add the code so that it looks like this:

else {
if(isset($_SERVER['REQUEST_URI']) && (strpos($_SERVER['REQUEST_URI'], '/admin') === false)) {
$f = fopen('var/translate-me.txt', 'a');
fwrite($f, date('Y-m-d H:i:s ').$text . ' |' . $_SERVER['HTTP_HOST'].  $_SERVER['REQUEST_URI'] ."\n");
fclose($f);
}
$translated = $text;
}

And then occasionally check the file /var/translate-me.txt for new texts to translate in the locale files. You will catch all untranslated texts, with the url of the page that generated the missing translation.

Notes:
- replace the “admin” check above with your own url to the admin interface
- var folder should be writable
- you will see untranslatable texts like category names, attributes, etc that are already localized but Magento tries to translate them anyway.

O noua aventura incepe

Categorized Under: 3:// Businessing No Commented

Plecam la drum intr-o noua excursie. Si pentru ca in orice excursie avem nevoie de o geanta, un rucsac sau un troller, am pregatit un nou magazin pe aceasta tema: www.PeUmar.ro

PeUmar.ro se adreseaza celor care care calatoresc sau pur si simplu ies la o plimbare. Magazinul isi propune sa le ofere acestora o experienta comoda de a cumpara online ceea ce au nevoie pentru drumetiile sau plimbarile lor zilnice: genti de umar, rucsaci, ghiozdane, genti de voiaj, serviete si alte accesorii. Produsele oferite la vanzare sunt livrate din stoc sau aprovizionate de la furnizori, perioada medie a expedierii unei comenzi fiind estimata la 5 zile. Preturile afisate pe site includ toate taxele cu exceptia taxelor de livrare pe care fiecare client le poate calcula foarte usor, fiind transparent si explicit afisat modul de calcul in dreptul fiecarui produs.

In prima etapa PeUmar.ro va gazdui un numar restrans de produse in fiecare categorie, dar ulterior urmeaza sa adaugam noi sectiuni si produse, in functie de cererea existenta si de oferta furnizorilor de astfel de produse.

Clientii care achizitioneaza produse prin magazinul online PeUmar.ro se bucura de posibilitatea de a returna produsele in termen 10 zile daca nu sunt satisfacuti de aceastea urmand sa primeasca banii inapoi, conform legislatiei romanesti in vigoare. Totodata, in cazul in care sunt multumiti de produsele cumparate, isi pot arata aprecierea acordand calificative si comentarii produselor de pe site, de care pot beneficia si alti viitori cumparatori, si chiar noi pentru a putea oferi produse calitative si cu adevarat utile.

Pentru informatii si detalii nu ezitati sa ne contactati.
www.PeUmar.ro

Aprilie, 2010

List of all manufacturers in Magento (v0.1.4)

Categorized Under: Magento 23 Commented

This new version of the “Shop by manufacturer” extension will display all the manufacturers/brands/etc that you have enabled. And as a bonus, you get a “featured manufacturers” block that you can use to display a list of maximum 5 manufacturers with logos (if you uploaded any).

Some screenshots will follow soon, in the extension page. Test this extension before using on a live site!

The form for an attribute value is changed a little, with new fields that will be displayed in the product pages (in future versions). For example you can upload a banner, add a small description.

The “all manufactures” page will display favorites manufacturers first, then a list with all the manufacturers (the favorites are displayed again). Looking for some ideas on how to organize this list, in case of large volume of data (for example paginate by first letter), please share your ideas or code in the comments.

For multilingual/non English websites you can customize the texts using the locale files. The attribute code gets appended with an ‘s’ for the plural form, so it is easy to guess the string that has to be translated. For every attribute code used you have to add translations like this (example in Romanian – in orange is manufacturer, the original attribute code):
Manufacturers”,”Toţi producătorii”
“All manufacturers”,”Toţi producătorii”
“Our favorite manufacturers”,”Producătorii cei mai căutaţi”

Happy testing!

Fii deştept – ia-ţi un calculator fără sistem de operare

Categorized Under: 99:// Diverse No Commented

Microsoft ne invita la soft original preinstalat. Pana aici nici o problema, dar din pacate campania nu e adresata cui trebuia.

fii-destept

Deci, a inceput scoala si ai tai trebuie sa-ti cumpere un calculator? Fii deschis si la alte posibile sisteme de operare. Decat sa dai banii de la inceput pe un Windows, pune niste memorie suplimentara sau un upgrade de hardisk (2 terra!!! :) ) sau un monitor gigant de 24.

New version released for Magento Attribute Info Pages

Categorized Under: Magento 2 Commented

New version released (0.1.3) which takes into consideration the prefix for the sql tables (thanks Irineu!).

The logos can be resized automatically to a desired size with the code (just an example, adjust to suit your template)

<action method="setImgResizeTo"><value>75x60</value></action>

in /app/design/frontend/default/default/layout/dc_catalog.xml:
- 75×60 will resize the logo to max 75px width and max 60px height
- 75x will resize the logo to max 75px width
- x60 will resize the logo to max 60px height

And also, the default template now includes the left layered navigation, which can be used to further filter the products displayed.