Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Advice on best way to create translation/filters in functions

  1. #11
    Jonny is offline Hello World
    Join Date
    Apr 2010
    Posts
    11

    Default

    The above was just a very simple example of the code pattern I was thinking of - there would in-fact be LOTS of filters across quite a few functions - it may be worth mentioning is that it forms part of a theme I am building.

  2. #12
    andreasnrb's Avatar
    andreasnrb is offline Kegger
    Join Date
    Jun 2009
    Posts
    595

    Default

    K. Don't see any reason to have lots of filters really for the translation part. Just have the translatable phrase as a parameter to the function and then people just replace it using switch, if statements or arrays in the filter.

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •