Zenpage - Changing title for "NEWS"

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

  • Look in the .htaccess file for the comment `#### Rewrite additions for zenpage`. Below this are the rules for Zenpage items. You will need to change the initial instance of "news" in the lines to "nyheter". (Same concept for pages if you have redefined that term.)

    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.
  • acrylian Administrator, Developer
    You have of course to change the names of the theme files as well as indicated.

    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.
  • Also, are you really worried about how it looks in the address bar? To be honest it's not often that someone will care about what the address bar says. All most users will remember is your site's domain name.

    I would suggest making all your changes via the theme itself for how it displays the info.
  • Gee, thanks for replying, mates. But I might hvae been unclear, and possibly a little stupid when explaining. It's not the adressbar that is the main concern for me, it's the menu sorta thang...

    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 ?
  • And, sorry for not doing this to begin with, I would like to thank you for this awsome plugin. Using all up to speed versions of Zenphoto, and plugins for this project and it's stunningly nice. However a tad slow at times, but that's is probably due to the size of it all in order to be able to manage the site through a Zenphoto with plugin possibilities, eh ?

    Anywhooo, great work, and many thanks from a rainy Sweden.
  • acrylian Administrator, Developer
    Ok, then we had a misunderstanding. You can change the "news" in the breadcrumb. Look at the theme pages. On news.php of the Zenpage theme you will find `<?php printNewsIndexURL(gettext('News'),' » '); ?>` right within a div named "breadcrumb". I of course don't know what other themes may do.

    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.
  • Damn it, hehe... Changed every other instance of gettext, but missed that bugger. Ah, well... stupidity will be tha last thing leaving mankind ;)

    Thanks.
Sign In or Register to comment.