Hey, new user here, tried to search for a solution, but do not find any, Zenphoto tells me to make appropriate changes in my htaccess file if I feel an erge to change ie "NEWS" in the plugin Zenpage. Well I do since I'm swedish, and the "NEWS" word should read "Nyheter" in swedish.
But if I do change this Zenphoto can't display the content that's there, if I change back to "NEWS" again its all bacdk, so it's most def. a htacccess problem, but I do not understand how to change it. I did try to change all occurances of the word "news" and swap it for "Nyheter" in the htaccess file I found in the zp_core folder, but that didn't do the trick for me...
Any chance of assistance here ? I would be much obliged
Sincerely Patric.
Comments
Depending on what version of Zenphoto you are running you may also be encountering bugs where the code did not properly use the definitions but instead used plain text "new". Sadly, this sort of thing will probably always happen. Specially since there is no equivalent for things like "search", "image", and "album" so coders are likely to make the above mistake. IHMO you would be better off leaving `NEWS` as `news`, etc. After all, these appear only in the URLs.
Well, "images" and "albums" don't need it as they normally (with modrewrite) do not appear in the url at all. It has been added as people might want it for localization reasons or might want "blog" instead of "news".
But I agree with sbillard that it is best left with the default values. Especially since the next release will not support it anymore as it is rarely used and causes issues.
I would suggest making all your changes via the theme itself for how it displays the info.
In the Zenpage theme we have that horizontal menu/breadcrumbs showing index when on index and index-news when on news. That, for a Swede, isn't at all times understandable as we do tend to speak, read and understand the english language at different levels. That is the location where I would like to see a change from news to nyheter.
Might I have not been thinking when typing this. Isn't it in the theme I edit news to nyheter for that change to take place ?
Anywhooo, great work, and many thanks from a rainy Sweden.
But if your server had gettext you should see that actually translated at least in the standard theme, although the Swedisch translation is a little out of date.
Regarding running slow: Well, Zenphoto is filesytem based and generates the sized images/thumbs on the fly when requested and then caches them. This might be slow on the first view. Same counts for album thumbs if set to random and the thumb has not been cached yet. Als this also depends on the size of your original images and your server speed. There is also the static_html_cache plugin to speed up your site on slower servers.
Thanks.