Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-9315

Profile uses both $string['city'] = / $string['location'] = for City Perhaps a potential problem with some language packs.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.8
    • Fix Version/s: 1.8.1
    • Component/s: Language
    • Labels:
      None
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE

      Description

      Related to Languae Packs and Profiles

      I wonder if this is not a potential problem with some language packs.

      I notice in Profiles, students add their city name with this language tab:
      $string['city'] =

      However, in the display of the profile, this tag is used:
      $string['location'] =
      If I'm not mistaken, this is the same tag that is used for "file location" which might possibly be translated differently in some languages.

      I would suggest changing the Profile Display to use $string['city'] =

      Perhaps this only affects admins who want to substitute other data into the "city" field.

      I noticed this problem, because instead of "City" which isn't useful information for us, we wanted to have students put in interests or hobbies.

      So I added these strings into the bottom of lang/moodle.php.
      // Hobby Instead of City CK 2007-03-29
      $string['city'] = 'Hobby / Interest / Free Time';
      $string['location'] = 'Hobby / Interest';
      $string['missingcity'] = 'What do you do in your free time?';
      // END OF Hobby Instead of City CK 2007-03-29

      This means that sometimes when asking for a files location, we get 'Hobby / Interest'
      However, if we don't define that string, then we get "Location" followed by a student's hobby when displaying their profiles.

      PS. I know that Moodle 1.8 allows additional data in the profiles, but this data isn't shown when one views a lists of participants.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              skodak Petr Skoda
              Reporter:
              dulcimer Charles Kelly
              Tester:
              Nicolas Martignoni Nicolas Martignoni
              Participants:
              Component watchers:
              David Mudrák (@mudrd8mz), Helen Foster, Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/Jun/07