TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 334
  • Total: 334

SMF 2 Text Strings

Started by Freddy, September 23, 2010, 04:21:19 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Freddy

General plee for help...

Does anyone know where there is a list of text strings used in SMF 2 please ?

I'm trying to use $txt['welcome_guest'] but it's not working as expected.

I get :

Welcome, %1$s. Please login or register.

Cheers :)

IchBin

There's a list of them in each of the language files. :P

That string is in the index.english.php file for me.

Freddy

Oh yeah *slaps forehead*  Getting rusty I think  :P

That string does not seem to work right then.

IchBin

You using utf8 or anything else?

Freddy

Nah just 'normal'....don't worry I did it without using txt strings in the end.

ZarPrime

A young guy by the name of Huw used to maintain a script on his site where you could easily look at the text strings for all the versions of SMF but he no longer maintains it, unfortunately. :-\ I still have the link bookmarked but it no longer works.  It was very handy and I used it quite often.  At one time, I thought that I would try to get hold of the script so that I could maintain it myself but I never asked him for it.  I don't even know if he is still around.

ZarPrime

IchBin

Shouldn't be to hard to read in the strings from all those files. How did he display it? I might be able to write something up to do this.

ZarPrime

He had at least 1 dropdown, but I think there might have been 2, one for the version of SMF and the other one to select the file the strings were in.  Once you selected the version and the file (I think), it just showed all the strings.  What was nice is that you could open a search in your browser (find) and go right to the correct string.  You can't tell anything from the link anymore about what it looked like but the link I had bookmarked is here --> http://huw.org.uk/smfstrings/?version=2.0RC1&language=english&filterfile=index.english.php

I've never talked to him except to maybe ask him a support question or something.  You or Bloc may know him better than I do, obviously.  Even though he isn't doing anything anymore on SMF he still is on there quite often.  In fact, I just checked and he was logged in today.  You might be able to get him to give up the script.

ZarPrime

This website is proudly hosted on Crocweb Cloud Website Hosting.